Spaces:
Sleeping
Sleeping
howard-hou
commited on
Commit
•
58c6fa7
1
Parent(s):
593a65c
Update app.py
Browse files
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(
|
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)
|