Spaces:
Sleeping
Sleeping
Increase concurrency to 5 threads to reduce queue wait time
Browse files
app.py
CHANGED
@@ -2738,4 +2738,8 @@ with gr.Blocks(
|
|
2738 |
|
2739 |
|
2740 |
if __name__ == "__main__":
|
2741 |
-
demo.launch(
|
|
|
|
|
|
|
|
|
|
2738 |
|
2739 |
|
2740 |
if __name__ == "__main__":
|
2741 |
+
demo.launch(
|
2742 |
+
max_threads=5, # 增加并发线程数到5
|
2743 |
+
show_error=True, # 显示错误信息
|
2744 |
+
share=False # HF Space不需要share
|
2745 |
+
)
|