Spaces:
Paused
Paused
Update app.py
Browse files
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/
|
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 |
-
|
25 |
-
|
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
|