Skip to content

Commit

Permalink
feat: 初次启动时添加设置向导
Browse files Browse the repository at this point in the history
  • Loading branch information
GaiZhenbiao committed Dec 14, 2023
1 parent e86b73d commit 3d45e18
Show file tree
Hide file tree
Showing 3 changed files with 542 additions and 9 deletions.
7 changes: 1 addition & 6 deletions ChuanhuChatbot.py
Original file line number Diff line number Diff line change
Expand Up @@ -785,17 +785,12 @@ def create_greeting(request: gr.Request):
_js='(a,b)=>{return bgSelectHistory(a,b);}'
)


logging.info(
colorama.Back.GREEN
+ "\n川虎的温馨提示:访问 http://localhost:7860 查看界面"
+ colorama.Style.RESET_ALL
)
# 默认开启本地服务器,默认可以直接从IP访问,默认不创建公开分享链接
demo.title = i18n("川虎Chat 🚀")

if __name__ == "__main__":
reload_javascript()
setup_wizard()
demo.queue(concurrency_count=CONCURRENT_COUNT).launch(
allowed_paths=["history", "web_assets"],
server_name=server_name,
Expand Down
Loading

0 comments on commit 3d45e18

Please sign in to comment.