fffiloni commited on
Commit
0f006b9
β€’
1 Parent(s): 7e09b14

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -10,12 +10,12 @@ def get_prompts(uploaded_image):
10
 
11
  music_result = get_music(prompt)
12
 
13
- return music_result
14
 
15
  def get_music(prompt):
16
  email = "[email protected]"
17
  duration = 30
18
- result = text_to_music([email, prompt, duration], fn_index=1)
19
  print(f"""β€”β€”β€”β€”β€”β€”
20
  {result}
21
  """)
@@ -28,7 +28,7 @@ with gr.Blocks() as demo:
28
  input_img = gr.Image(type="filepath")
29
  generate = gr.Button("Generate Music from Image")
30
  with gr.Column():
31
- music_output = gr.Audio(label="Result")
32
  generate.click(get_prompts, inputs=[input_img], outputs=[music_output])
33
 
34
  demo.launch()
 
10
 
11
  music_result = get_music(prompt)
12
 
13
+ return prompt
14
 
15
  def get_music(prompt):
16
  email = "[email protected]"
17
  duration = 30
18
+ result = text_to_music(email, prompt, duration)
19
  print(f"""β€”β€”β€”β€”β€”β€”
20
  {result}
21
  """)
 
28
  input_img = gr.Image(type="filepath")
29
  generate = gr.Button("Generate Music from Image")
30
  with gr.Column():
31
+ music_output = gr.Textbox(label="Result")
32
  generate.click(get_prompts, inputs=[input_img], outputs=[music_output])
33
 
34
  demo.launch()