Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -68,7 +68,6 @@ def get_magnet(prompt):
|
|
68 |
return result[0]['video']
|
69 |
|
70 |
def get_audioldm(prompt):
|
71 |
-
print(amended_prompt)
|
72 |
client = Client("https://haoheliu-audioldm2-text2audio-text2music.hf.space/")
|
73 |
result = client.predict(
|
74 |
prompt, # str in 'Input text' Textbox component
|
@@ -98,13 +97,13 @@ with gr.Blocks() as demo:
|
|
98 |
Compare MAGNet and AudioLDM2 sound effects generation from image caption (Kosmos2)
|
99 |
</p>
|
100 |
""")
|
|
|
|
|
|
|
|
|
101 |
with gr.Row():
|
102 |
-
|
103 |
-
|
104 |
-
submit_btn = gr.Button("Submit")
|
105 |
-
with gr.Column():
|
106 |
-
magnet_o = gr.Video(label="MAGNet output")
|
107 |
-
audioldm2_o = gr.Video(label="AudioLDM2 output")
|
108 |
submit_btn.click(
|
109 |
fn=infer,
|
110 |
inputs=[image_in],
|
|
|
68 |
return result[0]['video']
|
69 |
|
70 |
def get_audioldm(prompt):
|
|
|
71 |
client = Client("https://haoheliu-audioldm2-text2audio-text2music.hf.space/")
|
72 |
result = client.predict(
|
73 |
prompt, # str in 'Input text' Textbox component
|
|
|
97 |
Compare MAGNet and AudioLDM2 sound effects generation from image caption (Kosmos2)
|
98 |
</p>
|
99 |
""")
|
100 |
+
|
101 |
+
with gr.Column():
|
102 |
+
image_in = gr.Image(sources=["upload"], type="filepath", label="Image input")
|
103 |
+
submit_btn = gr.Button("Submit")
|
104 |
with gr.Row():
|
105 |
+
magnet_o = gr.Video(label="MAGNet output")
|
106 |
+
audioldm2_o = gr.Video(label="AudioLDM2 output")
|
|
|
|
|
|
|
|
|
107 |
submit_btn.click(
|
108 |
fn=infer,
|
109 |
inputs=[image_in],
|