fffiloni commited on
Commit
93da42a
โ€ข
1 Parent(s): b6a8599

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -5
app.py CHANGED
@@ -2,7 +2,7 @@ import gradio as gr
2
  import os
3
 
4
  img_to_text = gr.Blocks.load(name="spaces/pharma/CLIP-Interrogator")
5
- text_to_music = gr.Interface.load("spaces/Mubert/Text-to-Music")
6
 
7
  def get_prompts(uploaded_image):
8
  print("calling Clip interrogator ...")
@@ -21,10 +21,8 @@ def get_prompts(uploaded_image):
21
 
22
  def get_music(prompt):
23
  print("calling now mubert ....")
24
- email = "[email protected]"
25
- duration = 30
26
- result = text_to_music(email, prompt, duration)[0]
27
-
28
  #output = os.path.join(result)
29
  #print(output)
30
  return prompt
 
2
  import os
3
 
4
  img_to_text = gr.Blocks.load(name="spaces/pharma/CLIP-Interrogator")
5
+ text_to_music = gr.Interface.load("spaces/fffiloni/text-2-music")
6
 
7
  def get_prompts(uploaded_image):
8
  print("calling Clip interrogator ...")
 
21
 
22
  def get_music(prompt):
23
  print("calling now mubert ....")
24
+ result = text_to_music(prompt)[0]
25
+ print(result)
 
 
26
  #output = os.path.join(result)
27
  #print(output)
28
  return prompt