liuhui0401 commited on
Commit
bc62d72
·
verified ·
1 Parent(s): ef38074

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -81,7 +81,7 @@ with gr.Blocks(css=css) as demo:
81
  )
82
 
83
  # 使用队列(queue=True)和时间限制来优化处理
84
- image.stream(fn=detection, inputs=[image, conf_threshold], outputs=[image], time_limit=10, queue=True)
85
 
86
  if __name__ == "__main__":
87
  demo.launch()
 
81
  )
82
 
83
  # 使用队列(queue=True)和时间限制来优化处理
84
+ image.stream(fn=detection, inputs=[image, conf_threshold], outputs=[image], time_limit=10)
85
 
86
  if __name__ == "__main__":
87
  demo.launch()