Update app.py
Browse files
app.py
CHANGED
@@ -35,10 +35,10 @@ def infer(image_input, manual_caption, duration_in, seed, caption_output):
|
|
35 |
ph_update=""
|
36 |
|
37 |
sound = audio_gen(cap, duration_in, 2.5, seed, 3, fn_index=0)
|
38 |
-
print(sound
|
39 |
|
40 |
#return cap, sound[1], gr.Textbox.update(placeholder=f"{ph_update}{ph_message}"), gr.Group.update(visible=True)
|
41 |
-
return cap,
|
42 |
|
43 |
title = """
|
44 |
<div style="text-align: center; max-width: 700px; margin: 0 auto;">
|
@@ -120,7 +120,7 @@ with gr.Blocks(css="style.css") as demo:
|
|
120 |
|
121 |
|
122 |
|
123 |
-
generate.click(infer, inputs=[input_img, manual_cap, duration_in, seed_in, caption_output], outputs=[caption_output,
|
124 |
share_button.click(None, [], [], _js=share_js)
|
125 |
|
126 |
demo.queue(max_size=32).launch(debug=True)
|
|
|
35 |
ph_update=""
|
36 |
|
37 |
sound = audio_gen(cap, duration_in, 2.5, seed, 3, fn_index=0)
|
38 |
+
print(sound)
|
39 |
|
40 |
#return cap, sound[1], gr.Textbox.update(placeholder=f"{ph_update}{ph_message}"), gr.Group.update(visible=True)
|
41 |
+
return cap, gr.Group.update(visible=True)
|
42 |
|
43 |
title = """
|
44 |
<div style="text-align: center; max-width: 700px; margin: 0 auto;">
|
|
|
120 |
|
121 |
|
122 |
|
123 |
+
generate.click(infer, inputs=[input_img, manual_cap, duration_in, seed_in, caption_output], outputs=[caption_output, share_group], api_name="i2fx")
|
124 |
share_button.click(None, [], [], _js=share_js)
|
125 |
|
126 |
demo.queue(max_size=32).launch(debug=True)
|