Update app.py
Browse files
app.py
CHANGED
@@ -33,7 +33,8 @@ def infer(image_input, manual_caption, duration_in, seed, caption_output):
|
|
33 |
|
34 |
sound = audio_gen(cap, duration_in, 2.5, seed, 3, fn_index=0)
|
35 |
|
36 |
-
return cap, sound[1], gr.Textbox.update(placeholder=f"{ph_update}{ph_message}"), gr.Group.update(visible=True)
|
|
|
37 |
|
38 |
title = """
|
39 |
<div style="text-align: center; max-width: 700px; margin: 0 auto;">
|
@@ -113,7 +114,7 @@ with gr.Blocks(css="style.css") as demo:
|
|
113 |
clean_out = [manual_cap, caption_output, sound_output]
|
114 |
input_img.change(clean, input_img, clean_out)
|
115 |
|
116 |
-
generate.click(infer, inputs=[input_img, manual_cap, duration_in, seed_in, caption_output], outputs=[caption_output, sound_output,
|
117 |
share_button.click(None, [], [], _js=share_js)
|
118 |
|
119 |
demo.queue(max_size=32).launch(debug=True)
|
|
|
33 |
|
34 |
sound = audio_gen(cap, duration_in, 2.5, seed, 3, fn_index=0)
|
35 |
|
36 |
+
#return cap, sound[1], gr.Textbox.update(placeholder=f"{ph_update}{ph_message}"), gr.Group.update(visible=True)
|
37 |
+
return cap, sound[1], gr.Group.update(visible=True)
|
38 |
|
39 |
title = """
|
40 |
<div style="text-align: center; max-width: 700px; margin: 0 auto;">
|
|
|
114 |
clean_out = [manual_cap, caption_output, sound_output]
|
115 |
input_img.change(clean, input_img, clean_out)
|
116 |
|
117 |
+
generate.click(infer, inputs=[input_img, manual_cap, duration_in, seed_in, caption_output], outputs=[caption_output, sound_output, share_group], api_name="i2fx")
|
118 |
share_button.click(None, [], [], _js=share_js)
|
119 |
|
120 |
demo.queue(max_size=32).launch(debug=True)
|