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