Spaces:
Sleeping
Sleeping
Keldos
commited on
Commit
•
445b7ab
1
Parent(s):
bde4648
chore: 微调 4d6c63 中的样式
Browse files
ChuanhuChatbot.py
CHANGED
@@ -277,8 +277,8 @@ with gr.Blocks(theme=small_and_beautiful_theme) as demo:
|
|
277 |
value=config.http_proxy,
|
278 |
lines=1,
|
279 |
interactive=False,
|
280 |
-
container=False,
|
281 |
-
elem_classes="view-only-textbox",
|
282 |
)
|
283 |
# changeProxyBtn = gr.Button(i18n("🔄 设置代理地址"))
|
284 |
|
@@ -286,7 +286,7 @@ with gr.Blocks(theme=small_and_beautiful_theme) as demo:
|
|
286 |
apihostTxt = gr.Textbox(
|
287 |
show_label=True,
|
288 |
placeholder="api.openai.com",
|
289 |
-
label="OpenAI
|
290 |
value=config.api_host or shared.API_HOST,
|
291 |
lines=1,
|
292 |
interactive=False,
|
|
|
277 |
value=config.http_proxy,
|
278 |
lines=1,
|
279 |
interactive=False,
|
280 |
+
# container=False,
|
281 |
+
elem_classes="view-only-textbox no-container",
|
282 |
)
|
283 |
# changeProxyBtn = gr.Button(i18n("🔄 设置代理地址"))
|
284 |
|
|
|
286 |
apihostTxt = gr.Textbox(
|
287 |
show_label=True,
|
288 |
placeholder="api.openai.com",
|
289 |
+
label="OpenAI API-Host",
|
290 |
value=config.api_host or shared.API_HOST,
|
291 |
lines=1,
|
292 |
interactive=False,
|
web_assets/stylesheet/ChuanhuChat.css
CHANGED
@@ -37,11 +37,12 @@
|
|
37 |
}
|
38 |
|
39 |
#netsetting-warning hr {
|
40 |
-
margin-bottom: 1em
|
41 |
}
|
42 |
|
43 |
.view-only-textbox textarea {
|
44 |
-
-webkit-text-fill-color:
|
|
|
45 |
}
|
46 |
|
47 |
#footer {
|
|
|
37 |
}
|
38 |
|
39 |
#netsetting-warning hr {
|
40 |
+
margin-bottom: 1em;
|
41 |
}
|
42 |
|
43 |
.view-only-textbox textarea {
|
44 |
+
-webkit-text-fill-color: darkgray !important;
|
45 |
+
cursor: not-allowed !important;
|
46 |
}
|
47 |
|
48 |
#footer {
|