Leachim commited on
Commit
2feaaf1
1 Parent(s): 4a83839

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +5 -4
main.py CHANGED
@@ -222,10 +222,11 @@ def main():
222
  threading.Thread(target=warm_up_modules, name="warm-up", daemon=True).start()
223
 
224
  auto_opentab_delay()
225
- demo.queue(concurrency_count=CONCURRENT_COUNT).launch(
226
- server_name="0.0.0.0", server_port=PORT,
227
- favicon_path="docs/logo.png", auth=AUTHENTICATION,
228
- blocked_paths=["config.py","config_private.py","docker-compose.yml","Dockerfile"])
 
229
 
230
  # 如果需要在二级路径下运行
231
  # CUSTOM_PATH, = get_conf('CUSTOM_PATH')
 
222
  threading.Thread(target=warm_up_modules, name="warm-up", daemon=True).start()
223
 
224
  auto_opentab_delay()
225
+ demo.queue(concurrency_count=CONCURRENT_COUNT).launch(server_name="0.0.0.0", share=False, favicon_path="docs/logo.png", blocked_paths=["config.py","config_private.py","docker-compose.yml","Dockerfile"])
226
+ # demo.queue(concurrency_count=CONCURRENT_COUNT).launch(
227
+ # server_name="0.0.0.0", server_port=PORT,
228
+ # favicon_path="docs/logo.png", auth=AUTHENTICATION,
229
+ # blocked_paths=["config.py","config_private.py","docker-compose.yml","Dockerfile"])
230
 
231
  # 如果需要在二级路径下运行
232
  # CUSTOM_PATH, = get_conf('CUSTOM_PATH')