Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -39,7 +39,7 @@ with gr.Blocks(
|
|
39 |
with gr.Row():
|
40 |
|
41 |
with gr.Column(scale=1):
|
42 |
-
caption_output =
|
43 |
chat_input = gr.Textbox(lines=1, label="VQA Input")
|
44 |
chat_input.submit(
|
45 |
inference_chat,
|
@@ -49,7 +49,7 @@ with gr.Blocks(
|
|
49 |
],
|
50 |
[ caption_output],
|
51 |
)
|
52 |
-
|
53 |
with gr.Row():
|
54 |
clear_button = gr.Button(value="Clear", interactive=True)
|
55 |
clear_button.click(
|
@@ -70,6 +70,7 @@ with gr.Blocks(
|
|
70 |
],
|
71 |
[caption_output],
|
72 |
)
|
|
|
73 |
|
74 |
|
75 |
image_input.change(
|
|
|
39 |
with gr.Row():
|
40 |
|
41 |
with gr.Column(scale=1):
|
42 |
+
caption_output = None
|
43 |
chat_input = gr.Textbox(lines=1, label="VQA Input")
|
44 |
chat_input.submit(
|
45 |
inference_chat,
|
|
|
49 |
],
|
50 |
[ caption_output],
|
51 |
)
|
52 |
+
|
53 |
with gr.Row():
|
54 |
clear_button = gr.Button(value="Clear", interactive=True)
|
55 |
clear_button.click(
|
|
|
70 |
],
|
71 |
[caption_output],
|
72 |
)
|
73 |
+
caption_output = gr.Textbox(lines=1, label="VQA Output")
|
74 |
|
75 |
|
76 |
image_input.change(
|