Spaces:
Runtime error
Runtime error
Update
Browse files
app.py
CHANGED
@@ -207,19 +207,21 @@ with gr.Blocks(css='style.css') as demo:
|
|
207 |
with gr.Row():
|
208 |
with gr.Column():
|
209 |
with gr.Box():
|
210 |
-
gr.Markdown('Image Captioning')
|
211 |
caption_button = gr.Button(value='Caption it!')
|
212 |
-
caption_output = gr.Textbox(
|
|
|
|
|
213 |
with gr.Column():
|
214 |
with gr.Box():
|
215 |
-
gr.
|
216 |
-
|
|
|
|
|
|
|
|
|
217 |
with gr.Row():
|
218 |
clear_chat_button = gr.Button(value='Clear')
|
219 |
chat_button = gr.Button(value='Submit')
|
220 |
-
chatbot = gr.Chatbot(label='Chat Output')
|
221 |
-
history_orig = gr.State(value=[])
|
222 |
-
history_qa = gr.State(value=[])
|
223 |
|
224 |
gr.Examples(
|
225 |
examples=examples,
|
|
|
207 |
with gr.Row():
|
208 |
with gr.Column():
|
209 |
with gr.Box():
|
|
|
210 |
caption_button = gr.Button(value='Caption it!')
|
211 |
+
caption_output = gr.Textbox(
|
212 |
+
label='Caption Output',
|
213 |
+
show_label=False).style(container=False)
|
214 |
with gr.Column():
|
215 |
with gr.Box():
|
216 |
+
chatbot = gr.Chatbot(label='VQA Chat')
|
217 |
+
history_orig = gr.State(value=[])
|
218 |
+
history_qa = gr.State(value=[])
|
219 |
+
vqa_input = gr.Text(label='Chat Input',
|
220 |
+
show_label=False,
|
221 |
+
max_lines=1).style(container=False)
|
222 |
with gr.Row():
|
223 |
clear_chat_button = gr.Button(value='Clear')
|
224 |
chat_button = gr.Button(value='Submit')
|
|
|
|
|
|
|
225 |
|
226 |
gr.Examples(
|
227 |
examples=examples,
|