hysts HF staff commited on
Commit
2e7be44
1 Parent(s): a38ae12
Files changed (1) hide show
  1. app.py +9 -7
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(label='Caption Output')
 
 
213
  with gr.Column():
214
  with gr.Box():
215
- gr.Markdown('VQA Chat')
216
- vqa_input = gr.Text(label='Chat Input', max_lines=1)
 
 
 
 
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,