Update app.py
Browse files
app.py
CHANGED
@@ -119,9 +119,12 @@ with gr.Blocks(css=css) as demo:
|
|
119 |
coca_cap = gr.Textbox(label="Caption", placeholder="CoCa Caption will be displayed here", elem_id="coca-cap-in")
|
120 |
video_result = gr.Video(label="Video Output", elem_id="video-output")
|
121 |
|
122 |
-
submit_btn.click(
|
123 |
-
|
124 |
-
|
125 |
-
|
126 |
-
|
|
|
|
|
|
|
127 |
|
|
|
119 |
coca_cap = gr.Textbox(label="Caption", placeholder="CoCa Caption will be displayed here", elem_id="coca-cap-in")
|
120 |
video_result = gr.Video(label="Video Output", elem_id="video-output")
|
121 |
|
122 |
+
submit_btn.click(
|
123 |
+
fn=infer,
|
124 |
+
inputs=[image_init],
|
125 |
+
outputs=[coca_cap, video_result],
|
126 |
+
show_api=False
|
127 |
+
)
|
128 |
+
|
129 |
+
demo.queue(max_size=12).launch(show_api=False)
|
130 |
|