MingLi commited on
Commit
fd95dd0
·
1 Parent(s): 133a362

设置queue的max_size

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -91,5 +91,7 @@ with gr.Blocks() as blocks:
91
  t = gr.Textbox(label="结果")
92
 
93
  b.click(handel, inputs=f, outputs=t)
 
 
94
 
95
  app = gr.mount_gradio_app(app, blocks, path="/")
 
91
  t = gr.Textbox(label="结果")
92
 
93
  b.click(handel, inputs=f, outputs=t)
94
+
95
+ blocks.queue(max_size=3)
96
 
97
  app = gr.mount_gradio_app(app, blocks, path="/")