Spaces:
Sleeping
Sleeping
解决container=False时的错误填充
Browse files- ChuanhuChatbot.py +3 -3
- assets/custom.css +6 -1
ChuanhuChatbot.py
CHANGED
|
@@ -116,8 +116,7 @@ with gr.Blocks(css=customCSS, theme=small_and_beautiful_theme) as demo:
|
|
| 116 |
placeholder=i18n("在这里输入System Prompt..."),
|
| 117 |
label="System prompt",
|
| 118 |
value=INITIAL_SYSTEM_PROMPT,
|
| 119 |
-
lines=10
|
| 120 |
-
container=False,
|
| 121 |
)
|
| 122 |
with gr.Accordion(label=i18n("加载Prompt模板"), open=True):
|
| 123 |
with gr.Column():
|
|
@@ -151,7 +150,8 @@ with gr.Blocks(css=customCSS, theme=small_and_beautiful_theme) as demo:
|
|
| 151 |
historyFileSelectDropdown = gr.Dropdown(
|
| 152 |
label=i18n("从列表中加载对话"),
|
| 153 |
choices=get_history_names(plain=True),
|
| 154 |
-
multiselect=False
|
|
|
|
| 155 |
)
|
| 156 |
with gr.Row():
|
| 157 |
with gr.Column(min_width=42, scale=1):
|
|
|
|
| 116 |
placeholder=i18n("在这里输入System Prompt..."),
|
| 117 |
label="System prompt",
|
| 118 |
value=INITIAL_SYSTEM_PROMPT,
|
| 119 |
+
lines=10
|
|
|
|
| 120 |
)
|
| 121 |
with gr.Accordion(label=i18n("加载Prompt模板"), open=True):
|
| 122 |
with gr.Column():
|
|
|
|
| 150 |
historyFileSelectDropdown = gr.Dropdown(
|
| 151 |
label=i18n("从列表中加载对话"),
|
| 152 |
choices=get_history_names(plain=True),
|
| 153 |
+
multiselect=False,
|
| 154 |
+
container=False,
|
| 155 |
)
|
| 156 |
with gr.Row():
|
| 157 |
with gr.Column(min_width=42, scale=1):
|
assets/custom.css
CHANGED
|
@@ -32,6 +32,11 @@
|
|
| 32 |
margin: 32px 0 4px 0;
|
| 33 |
}
|
| 34 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 35 |
/* gradio的页脚信息 */
|
| 36 |
footer {
|
| 37 |
/* display: none !important; */
|
|
@@ -207,7 +212,7 @@ footer {
|
|
| 207 |
display: none !important;
|
| 208 |
}
|
| 209 |
.apSlider {
|
| 210 |
-
background-color: var(--neutral-
|
| 211 |
bottom: 0;
|
| 212 |
cursor: pointer;
|
| 213 |
left: 0;
|
|
|
|
| 32 |
margin: 32px 0 4px 0;
|
| 33 |
}
|
| 34 |
|
| 35 |
+
/* 解决container=False时的错误填充 */
|
| 36 |
+
div.form {
|
| 37 |
+
background: none !important;
|
| 38 |
+
}
|
| 39 |
+
|
| 40 |
/* gradio的页脚信息 */
|
| 41 |
footer {
|
| 42 |
/* display: none !important; */
|
|
|
|
| 212 |
display: none !important;
|
| 213 |
}
|
| 214 |
.apSlider {
|
| 215 |
+
background-color: var(--neutral-400);
|
| 216 |
bottom: 0;
|
| 217 |
cursor: pointer;
|
| 218 |
left: 0;
|