Spaces:
Paused
Paused
Update app.py
Browse files
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 |
-
|
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 |
-
|
|
|
|
|
|
|
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 = "[email protected]"
|
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():
|