howard-hou commited on
Commit
58c6fa7
1 Parent(s): 593a65c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -157,9 +157,9 @@ with gr.Blocks(title=title) as demo:
157
  with gr.Column():
158
  output = gr.Textbox(label="Output", lines=10)
159
  data = gr.Dataset(components=[image, prompt], samples=examples, label="Examples", headers=["Image", "Prompt"])
160
- submit.click(chatbot, [image, prompt], [output])
161
  clear.click(lambda: None, [], [output])
162
  data.click(lambda x: x, [data], [image, prompt])
163
 
164
- demo.queue(concurrency_count=1, max_size=10)
165
  demo.launch(share=False)
 
157
  with gr.Column():
158
  output = gr.Textbox(label="Output", lines=10)
159
  data = gr.Dataset(components=[image, prompt], samples=examples, label="Examples", headers=["Image", "Prompt"])
160
+ submit.click(chatbot, [image, prompt], [output], concurrency_limit=1)
161
  clear.click(lambda: None, [], [output])
162
  data.click(lambda x: x, [data], [image, prompt])
163
 
164
+ demo.queue(max_size=10)
165
  demo.launch(share=False)