Spaces:
Sleeping
Sleeping
Update main.py
Browse files
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 |
-
|
227 |
-
|
228 |
-
|
|
|
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')
|