fffiloni commited on
Commit
fbbc41b
β€’
1 Parent(s): 5300b13

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -1
app.py CHANGED
@@ -5,13 +5,17 @@ text_to_music = gr.Interface.load("spaces/Mubert/Text-to-Music")
5
 
6
  def get_prompts(uploaded_image):
7
  prompt = img_to_text(uploaded_image, fn_index=1)[0]
 
8
  music_result = get_music(prompt)
 
 
 
9
  return music_result
10
 
11
  def get_music(prompt):
12
  email = "[email protected]"
13
  duration = 30
14
- result = text_to_music(email, prompt, duration, loop=False)[0]
15
  return result
16
 
17
  with gr.Blocks() as demo:
 
5
 
6
  def get_prompts(uploaded_image):
7
  prompt = img_to_text(uploaded_image, fn_index=1)[0]
8
+ print(prompt)
9
  music_result = get_music(prompt)
10
+ print(f"""β€”β€”β€”β€”β€”β€”
11
+ {music_result}
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)[0]
19
  return result
20
 
21
  with gr.Blocks() as demo: