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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -4
app.py CHANGED
@@ -7,16 +7,17 @@ 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 = "blabla@mail.com"
17
  duration = 30
18
  result = text_to_music(email, prompt, duration)[0]
19
- return result
 
 
 
20
 
21
  with gr.Blocks() as demo:
22
  with gr.Row():
 
7
  prompt = img_to_text(uploaded_image, fn_index=1)[0]
8
  print(prompt)
9
  music_result = get_music(prompt)
10
+
 
 
11
  return music_result
12
 
13
  def get_music(prompt):
14
  email = "blabla@mail.com"
15
  duration = 30
16
  result = text_to_music(email, prompt, duration)[0]
17
+ print(f"""β€”β€”β€”β€”β€”β€”
18
+ {result}
19
+ """)
20
+ return None
21
 
22
  with gr.Blocks() as demo:
23
  with gr.Row():