Spaces:
Build error
Build error
binary-husky
commited on
Commit
•
c43a3e6
1
Parent(s):
a8399d2
默认关闭share
Browse files注意,由于国内 Gradio 的网络访问较为缓慢,启用 demo.queue().launch(share=True, inbrowser=True) 时所有网络会经过 Gradio 服务器转发,导致打字机体验大幅下降,现在默认启动方式已经改为 share=False,如有需要公网访问的需求,可以重新修改为 share=True 启动。
main.py
CHANGED
@@ -171,4 +171,4 @@ def auto_opentab_delay():
|
|
171 |
threading.Thread(target=auto_update, name="self-upgrade", daemon=True).start()
|
172 |
|
173 |
auto_opentab_delay()
|
174 |
-
demo.queue(concurrency_count=CONCURRENT_COUNT).launch(server_name="0.0.0.0",
|
|
|
171 |
threading.Thread(target=auto_update, name="self-upgrade", daemon=True).start()
|
172 |
|
173 |
auto_opentab_delay()
|
174 |
+
demo.queue(concurrency_count=CONCURRENT_COUNT).launch(server_name="0.0.0.0", server_port=PORT, auth=AUTHENTICATION)
|