Spaces:
Running
on
T4
Running
on
T4
yuntian-deng
commited on
Commit
•
fcba90f
1
Parent(s):
dc63b07
Update app.py
Browse files
app.py
CHANGED
@@ -109,5 +109,5 @@ with gr.Blocks() as demo:
|
|
109 |
# yield i, q, submit_btn.update(visible=True)
|
110 |
except Exception as e:
|
111 |
yield 1000, 255*np.ones((64, 320, 3)), submit_btn.update(visible=True)
|
112 |
-
submit_btn.click(fn=infer, inputs=inputs, outputs=outputs)
|
113 |
-
demo.queue(
|
|
|
109 |
# yield i, q, submit_btn.update(visible=True)
|
110 |
except Exception as e:
|
111 |
yield 1000, 255*np.ones((64, 320, 3)), submit_btn.update(visible=True)
|
112 |
+
submit_btn.click(fn=infer, inputs=inputs, outputs=outputs, concurrency_limit=1)
|
113 |
+
demo.queue(max_size=20).launch(enable_queue=True)
|