Spaces:
Build error
Build error
Update app.py
Browse files
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
|
| 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()
|