diff --git a/.gitignore b/.gitignore index 8f2cbd12..5f154d8f 100644 --- a/.gitignore +++ b/.gitignore @@ -136,3 +136,5 @@ dmypy.json api_key.txt auth.json + +.idea diff --git a/ChuanhuChatbot.py b/ChuanhuChatbot.py index aae6272e..77452212 100644 --- a/ChuanhuChatbot.py +++ b/ChuanhuChatbot.py @@ -261,7 +261,7 @@ transfer_input_args = dict( fn=transfer_input, inputs=[user_input], outputs=[user_question, user_input, submitBtn, cancelBtn], show_progress=True ) - + get_usage_args = dict( fn=get_usage, inputs=[user_api_key], outputs=[usageTxt], show_progress=False ) @@ -326,7 +326,7 @@ show_progress=True, ) reduceTokenBtn.click(**get_usage_args) - + # ChatGPT keyTxt.change(submit_key, keyTxt, [user_api_key, status_display]).then(**get_usage_args) @@ -391,11 +391,11 @@ logging.info( colorama.Back.GREEN - + "\n川虎的温馨提示:访问 http://localhost:7860 查看界面" + + "\n温馨提示:访问 http://localhost:7860 查看界面" + colorama.Style.RESET_ALL ) # 默认开启本地服务器,默认可以直接从IP访问,默认不创建公开分享链接 -demo.title = "川虎ChatGPT 🚀" +demo.title = "猿地崛起🚀" if __name__ == "__main__": reload_javascript() diff --git a/Dockerfile b/Dockerfile index 8cbd335b..1eb75891 100644 --- a/Dockerfile +++ b/Dockerfile @@ -11,4 +11,5 @@ COPY . /app WORKDIR /app ENV my_api_key empty ENV dockerrun yes +RUN sed -i 's/websocket\.cookies\.get("access-token")/websocket.cookies.get("access-token-unsecure")/' /root/.local/lib/python3.9/site-packages/gradio/routes.py CMD ["python3", "-u", "ChuanhuChatbot.py", "2>&1", "|", "tee", "/var/log/application.log"] diff --git a/assets/favicon.ico b/assets/favicon.ico index 9876786e..09769323 100644 Binary files a/assets/favicon.ico and b/assets/favicon.ico differ diff --git a/assets/favicon2.ico b/assets/favicon2.ico new file mode 100644 index 00000000..9876786e Binary files /dev/null and b/assets/favicon2.ico differ diff --git a/modules/presets.py b/modules/presets.py index fcfb53e7..01a0718a 100644 --- a/modules/presets.py +++ b/modules/presets.py @@ -29,14 +29,9 @@ SIM_K = 5 INDEX_QUERY_TEMPRATURE = 1.0 -title = """

川虎ChatGPT 🚀

""" +title = """

猿地崛起 🚀

""" description = """\
- -由Bilibili [土川虎虎虎](https://space.bilibili.com/29125536) 和 [明昭MZhao](https://space.bilibili.com/24807452)开发 - -访问川虎ChatGPT的 [GitHub项目](https://github.com/GaiZhenbiao/ChuanhuChatGPT) 下载最新版脚本 - 此App使用 `gpt-3.5-turbo` 大语言模型
"""