Spaces:
Sleeping
Sleeping
高级界面调整
Browse files- ChuanhuChatbot.py +3 -1
- assets/custom.css +9 -0
ChuanhuChatbot.py
CHANGED
|
@@ -209,7 +209,7 @@ with gr.Blocks(css=customCSS, theme=small_and_beautiful_theme) as demo:
|
|
| 209 |
)
|
| 210 |
stop_sequence_txt = gr.Textbox(
|
| 211 |
show_label=True,
|
| 212 |
-
placeholder=i18n("
|
| 213 |
label="stop",
|
| 214 |
value="",
|
| 215 |
lines=1,
|
|
@@ -269,6 +269,7 @@ with gr.Blocks(css=customCSS, theme=small_and_beautiful_theme) as demo:
|
|
| 269 |
label="API-Host",
|
| 270 |
value=config.api_host or shared.API_HOST,
|
| 271 |
lines=1,
|
|
|
|
| 272 |
)
|
| 273 |
changeAPIURLBtn = gr.Button(i18n("🔄 切换API地址"))
|
| 274 |
proxyTxt = gr.Textbox(
|
|
@@ -277,6 +278,7 @@ with gr.Blocks(css=customCSS, theme=small_and_beautiful_theme) as demo:
|
|
| 277 |
label=i18n("代理地址(示例:http://127.0.0.1:10809)"),
|
| 278 |
value="",
|
| 279 |
lines=2,
|
|
|
|
| 280 |
)
|
| 281 |
changeProxyBtn = gr.Button(i18n("🔄 设置代理地址"))
|
| 282 |
default_btn = gr.Button(i18n("🔙 恢复默认设置"))
|
|
|
|
| 209 |
)
|
| 210 |
stop_sequence_txt = gr.Textbox(
|
| 211 |
show_label=True,
|
| 212 |
+
placeholder=i18n("停止符,用英文逗号隔开..."),
|
| 213 |
label="stop",
|
| 214 |
value="",
|
| 215 |
lines=1,
|
|
|
|
| 269 |
label="API-Host",
|
| 270 |
value=config.api_host or shared.API_HOST,
|
| 271 |
lines=1,
|
| 272 |
+
container=False,
|
| 273 |
)
|
| 274 |
changeAPIURLBtn = gr.Button(i18n("🔄 切换API地址"))
|
| 275 |
proxyTxt = gr.Textbox(
|
|
|
|
| 278 |
label=i18n("代理地址(示例:http://127.0.0.1:10809)"),
|
| 279 |
value="",
|
| 280 |
lines=2,
|
| 281 |
+
container=False,
|
| 282 |
)
|
| 283 |
changeProxyBtn = gr.Button(i18n("🔄 设置代理地址"))
|
| 284 |
default_btn = gr.Button(i18n("🔙 恢复默认设置"))
|
assets/custom.css
CHANGED
|
@@ -37,6 +37,14 @@ div.form {
|
|
| 37 |
background: none !important;
|
| 38 |
}
|
| 39 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 40 |
/* gradio的页脚信息 */
|
| 41 |
footer {
|
| 42 |
/* display: none !important; */
|
|
@@ -200,6 +208,7 @@ footer {
|
|
| 200 |
line-height: 20px;
|
| 201 |
}
|
| 202 |
|
|
|
|
| 203 |
.apSwitch {
|
| 204 |
top: 2px;
|
| 205 |
display: inline-block;
|
|
|
|
| 37 |
background: none !important;
|
| 38 |
}
|
| 39 |
|
| 40 |
+
/* 高级页面 */
|
| 41 |
+
#advanced_warning {
|
| 42 |
+
display: flex;
|
| 43 |
+
flex-wrap: wrap;
|
| 44 |
+
flex-direction: column;
|
| 45 |
+
align-content: center;
|
| 46 |
+
}
|
| 47 |
+
|
| 48 |
/* gradio的页脚信息 */
|
| 49 |
footer {
|
| 50 |
/* display: none !important; */
|
|
|
|
| 208 |
line-height: 20px;
|
| 209 |
}
|
| 210 |
|
| 211 |
+
/* 亮暗色模式 */
|
| 212 |
.apSwitch {
|
| 213 |
top: 2px;
|
| 214 |
display: inline-block;
|