Update app.py
Browse files
app.py
CHANGED
@@ -11,7 +11,7 @@ audio_gen = gr.Blocks.load(name="spaces/fffiloni/audioldm-text-to-audio-generati
|
|
11 |
ph_message="If you're not happy with sound result, you can manually describe the scene depicted in your image :)"
|
12 |
|
13 |
def clean():
|
14 |
-
return manual_cap.update(value="",placeholder=ph_message), caption_output.update(value=None)
|
15 |
|
16 |
def infer(image_input, manual_caption, duration_in, seed):
|
17 |
print(duration_in)
|
@@ -103,7 +103,7 @@ with gr.Blocks(css="style.css") as demo:
|
|
103 |
|
104 |
gr.HTML(article)
|
105 |
|
106 |
-
input_img.change(clean, None, [manual_cap,caption_output])
|
107 |
generate.click(infer, inputs=[input_img, manual_cap, duration_in, seed_in], outputs=[caption_output, sound_output, manual_cap, share_group], api_name="i2fx")
|
108 |
share_button.click(None, [], [], _js=share_js)
|
109 |
|
|
|
11 |
ph_message="If you're not happy with sound result, you can manually describe the scene depicted in your image :)"
|
12 |
|
13 |
def clean():
|
14 |
+
return manual_cap.update(value="",placeholder=ph_message), caption_output.update(value=None), sound_output.update(value=None)
|
15 |
|
16 |
def infer(image_input, manual_caption, duration_in, seed):
|
17 |
print(duration_in)
|
|
|
103 |
|
104 |
gr.HTML(article)
|
105 |
|
106 |
+
input_img.change(clean, None, [manual_cap,caption_output,sound_output])
|
107 |
generate.click(infer, inputs=[input_img, manual_cap, duration_in, seed_in], outputs=[caption_output, sound_output, manual_cap, share_group], api_name="i2fx")
|
108 |
share_button.click(None, [], [], _js=share_js)
|
109 |
|