Spaces:
Sleeping
Sleeping
Merge branch 'main' of https://github.com/GaiZhenbiao/ChuanhuChatGPT
Browse files- ChuanhuChatbot.py +1 -1
- README.md +4 -2
- assets/favicon.ico +0 -0
- assets/favicon.png +0 -0
- custom.css +5 -9
ChuanhuChatbot.py
CHANGED
|
@@ -448,7 +448,7 @@ if __name__ == "__main__":
|
|
| 448 |
if authflag:
|
| 449 |
demo.queue().launch(share=False, auth=(username, password), favicon_path="./assets/favicon.png", inbrowser=True)
|
| 450 |
else:
|
| 451 |
-
demo.queue().launch(share=False, favicon_path="./assets/favicon.
|
| 452 |
# demo.queue().launch(server_name="0.0.0.0", server_port=7860, share=False) # 可自定义端口
|
| 453 |
# demo.queue().launch(server_name="0.0.0.0", server_port=7860,auth=("在这里填写用户名", "在这里填写密码")) # 可设置用户名与密码
|
| 454 |
# demo.queue().launch(auth=("在这里填写用户名", "在这里填写密码")) # 适合Nginx反向代理
|
|
|
|
| 448 |
if authflag:
|
| 449 |
demo.queue().launch(share=False, auth=(username, password), favicon_path="./assets/favicon.png", inbrowser=True)
|
| 450 |
else:
|
| 451 |
+
demo.queue().launch(share=False, favicon_path="./assets/favicon.ico", inbrowser=True) # 改为 share=True 可以创建公开分享链接
|
| 452 |
# demo.queue().launch(server_name="0.0.0.0", server_port=7860, share=False) # 可自定义端口
|
| 453 |
# demo.queue().launch(server_name="0.0.0.0", server_port=7860,auth=("在这里填写用户名", "在这里填写密码")) # 可设置用户名与密码
|
| 454 |
# demo.queue().launch(auth=("在这里填写用户名", "在这里填写密码")) # 适合Nginx反向代理
|
README.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
| 1 |
<h1 align="center">川虎 ChatGPT 🐯 Chuanhu ChatGPT</h1>
|
| 2 |
<div align="center">
|
| 3 |
<a href="https://github.com/GaiZhenBiao/ChuanhuChatGPT">
|
| 4 |
-
<img src="https://user-images.githubusercontent.com/70903329/
|
| 5 |
</a>
|
| 6 |
|
| 7 |
<p align="center">
|
|
@@ -30,8 +30,10 @@
|
|
| 30 |
<a href="https://www.bilibili.com/video/BV1mo4y1r7eE"><strong>视频教程</strong></a>
|
| 31 |
·
|
| 32 |
<a href="https://www.bilibili.com/video/BV1184y1w7aP"><strong>2.0介绍视频</strong></a>
|
| 33 |
-
|
| 34 |
<a href="https://huggingface.co/spaces/JohnSmith9982/ChuanhuChatGPT"><strong>在线体验</strong></a>
|
|
|
|
|
|
|
| 35 |
</p>
|
| 36 |
<p align="center">
|
| 37 |
<img alt="Animation Demo" src="https://user-images.githubusercontent.com/51039745/226255695-6b17ff1f-ea8d-464f-b69b-a7b6b68fffe8.gif" />
|
|
|
|
| 1 |
<h1 align="center">川虎 ChatGPT 🐯 Chuanhu ChatGPT</h1>
|
| 2 |
<div align="center">
|
| 3 |
<a href="https://github.com/GaiZhenBiao/ChuanhuChatGPT">
|
| 4 |
+
<img src="https://user-images.githubusercontent.com/70903329/227087087-93b37d64-7dc3-4738-a518-c1cf05591c8a.png" alt="Logo" height="156">
|
| 5 |
</a>
|
| 6 |
|
| 7 |
<p align="center">
|
|
|
|
| 30 |
<a href="https://www.bilibili.com/video/BV1mo4y1r7eE"><strong>视频教程</strong></a>
|
| 31 |
·
|
| 32 |
<a href="https://www.bilibili.com/video/BV1184y1w7aP"><strong>2.0介绍视频</strong></a>
|
| 33 |
+
||
|
| 34 |
<a href="https://huggingface.co/spaces/JohnSmith9982/ChuanhuChatGPT"><strong>在线体验</strong></a>
|
| 35 |
+
·
|
| 36 |
+
<a href="https://huggingface.co/login?next=%2Fspaces%2FJohnSmith9982%2FChuanhuChatGPT%3Fduplicate%3Dtrue"><strong>一键部署</strong></a>
|
| 37 |
</p>
|
| 38 |
<p align="center">
|
| 39 |
<img alt="Animation Demo" src="https://user-images.githubusercontent.com/51039745/226255695-6b17ff1f-ea8d-464f-b69b-a7b6b68fffe8.gif" />
|
assets/favicon.ico
ADDED
|
|
assets/favicon.png
DELETED
|
Binary file (560 kB)
|
|
|
custom.css
CHANGED
|
@@ -19,15 +19,9 @@
|
|
| 19 |
#chuanhu_chatbot, #status_display {
|
| 20 |
transition: all 0.6s;
|
| 21 |
}
|
| 22 |
-
|
| 23 |
-
ol, ul {
|
| 24 |
-
|
| 25 |
-
padding-left: 0;
|
| 26 |
-
}
|
| 27 |
-
|
| 28 |
-
ol li, ul:not(.options) li {
|
| 29 |
-
padding-left: 1.5em;
|
| 30 |
-
text-indent: -1.5em;
|
| 31 |
}
|
| 32 |
|
| 33 |
/* 亮色 */
|
|
@@ -82,6 +76,8 @@ ol li, ul:not(.options) li {
|
|
| 82 |
padding: var(--spacing-xl) !important;
|
| 83 |
font-size: var(--text-md) !important;
|
| 84 |
line-height: var(--line-md) !important;
|
|
|
|
|
|
|
| 85 |
}
|
| 86 |
[data-testid = "bot"] {
|
| 87 |
max-width: 85%;
|
|
|
|
| 19 |
#chuanhu_chatbot, #status_display {
|
| 20 |
transition: all 0.6s;
|
| 21 |
}
|
| 22 |
+
/* list */
|
| 23 |
+
ol:not(.options), ul:not(.options) {
|
| 24 |
+
padding-inline-start: 2em !important;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 25 |
}
|
| 26 |
|
| 27 |
/* 亮色 */
|
|
|
|
| 76 |
padding: var(--spacing-xl) !important;
|
| 77 |
font-size: var(--text-md) !important;
|
| 78 |
line-height: var(--line-md) !important;
|
| 79 |
+
min-height: calc(var(--text-md)*var(--line-md) + 2*var(--spacing-xl));
|
| 80 |
+
min-width: calc(var(--text-md)*var(--line-md) + 2*var(--spacing-xl));
|
| 81 |
}
|
| 82 |
[data-testid = "bot"] {
|
| 83 |
max-width: 85%;
|