Update ChuanhuChatbot.py
Browse files- ChuanhuChatbot.py +4 -2
ChuanhuChatbot.py
CHANGED
@@ -458,12 +458,14 @@ logging.info(
|
|
458 |
+ colorama.Style.RESET_ALL
|
459 |
)
|
460 |
# 默认开启本地服务器,默认可以直接从IP访问,默认不创建公开分享链接
|
461 |
-
demo.title = i18n("
|
462 |
|
463 |
if __name__ == "__main__":
|
464 |
reload_javascript()
|
|
|
|
|
465 |
demo.queue(concurrency_count=CONCURRENT_COUNT).launch(
|
466 |
-
favicon_path="./assets/favicon.ico",
|
467 |
)
|
468 |
# demo.queue(concurrency_count=CONCURRENT_COUNT).launch(server_name="0.0.0.0", server_port=7860, share=False) # 可自定义端口
|
469 |
# demo.queue(concurrency_count=CONCURRENT_COUNT).launch(server_name="0.0.0.0", server_port=7860,auth=("在这里填写用户名", "在这里填写密码")) # 可设置用户名与密码
|
|
|
458 |
+ colorama.Style.RESET_ALL
|
459 |
)
|
460 |
# 默认开启本地服务器,默认可以直接从IP访问,默认不创建公开分享链接
|
461 |
+
demo.title = i18n("Chat 🚀")
|
462 |
|
463 |
if __name__ == "__main__":
|
464 |
reload_javascript()
|
465 |
+
kiddog_user = os.environ.get("kiddog_user")
|
466 |
+
kiddog_pwd = os.environ.get("kiddog_pwd")
|
467 |
demo.queue(concurrency_count=CONCURRENT_COUNT).launch(
|
468 |
+
favicon_path="./assets/favicon.ico",auth=(kiddog_user, kiddog_pwd)
|
469 |
)
|
470 |
# demo.queue(concurrency_count=CONCURRENT_COUNT).launch(server_name="0.0.0.0", server_port=7860, share=False) # 可自定义端口
|
471 |
# demo.queue(concurrency_count=CONCURRENT_COUNT).launch(server_name="0.0.0.0", server_port=7860,auth=("在这里填写用户名", "在这里填写密码")) # 可设置用户名与密码
|