LinhIcey commited on
Commit
7faf7df
1 Parent(s): 1102757

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -78,7 +78,7 @@ def main():
78
  with gr.Column(scale=2):
79
  change_button = gr.Button('Change hint to English', visible=False)
80
  with gr.Column(scale=5.5):
81
- result_text = gr.Chatbot(label='Multi-round conversation History', value=[])
82
  hidden_image_hash = gr.Textbox(visible=False)
83
 
84
  gr_examples = gr.Examples(examples=[[example["text"], example["image"]] for example in examples],
@@ -95,6 +95,7 @@ def main():
95
  img_path.upload(fn=clear_fn2, inputs=clear_button, outputs=[result_text])
96
  img_path.clear(fn=clear_fn2, inputs=clear_button, outputs=[result_text])
97
 
 
98
  demo.launch(server_name="0.0.0.0")
99
 
100
  if __name__ == '__main__':
 
78
  with gr.Column(scale=2):
79
  change_button = gr.Button('Change hint to English', visible=False)
80
  with gr.Column(scale=5.5):
81
+ result_text = gr.components.Chatbot(label='Multi-round conversation History', value=[]).style(height=550)
82
  hidden_image_hash = gr.Textbox(visible=False)
83
 
84
  gr_examples = gr.Examples(examples=[[example["text"], example["image"]] for example in examples],
 
95
  img_path.upload(fn=clear_fn2, inputs=clear_button, outputs=[result_text])
96
  img_path.clear(fn=clear_fn2, inputs=clear_button, outputs=[result_text])
97
 
98
+ demo.queue(concurrency_count=10)
99
  demo.launch(server_name="0.0.0.0")
100
 
101
  if __name__ == '__main__':