Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
@@ -10,12 +10,12 @@ def get_prompts(uploaded_image):
|
|
10 |
|
11 |
music_result = get_music(prompt)
|
12 |
|
13 |
-
return
|
14 |
|
15 |
def get_music(prompt):
|
16 |
email = "[email protected]"
|
17 |
duration = 30
|
18 |
-
result = text_to_music(
|
19 |
print(f"""ββββββ
|
20 |
{result}
|
21 |
""")
|
@@ -28,7 +28,7 @@ with gr.Blocks() as demo:
|
|
28 |
input_img = gr.Image(type="filepath")
|
29 |
generate = gr.Button("Generate Music from Image")
|
30 |
with gr.Column():
|
31 |
-
music_output = gr.
|
32 |
generate.click(get_prompts, inputs=[input_img], outputs=[music_output])
|
33 |
|
34 |
demo.launch()
|
|
|
10 |
|
11 |
music_result = get_music(prompt)
|
12 |
|
13 |
+
return prompt
|
14 |
|
15 |
def get_music(prompt):
|
16 |
email = "[email protected]"
|
17 |
duration = 30
|
18 |
+
result = text_to_music(email, prompt, duration)
|
19 |
print(f"""ββββββ
|
20 |
{result}
|
21 |
""")
|
|
|
28 |
input_img = gr.Image(type="filepath")
|
29 |
generate = gr.Button("Generate Music from Image")
|
30 |
with gr.Column():
|
31 |
+
music_output = gr.Textbox(label="Result")
|
32 |
generate.click(get_prompts, inputs=[input_img], outputs=[music_output])
|
33 |
|
34 |
demo.launch()
|