Spaces:
Sleeping
Sleeping
Tuchuanhuhuhu commited on
Commit ·
60d042c
1
Parent(s): f2c2a56
微调界面
Browse files- ChuanhuChatbot.py +4 -4
ChuanhuChatbot.py
CHANGED
|
@@ -156,7 +156,6 @@ with gr.Blocks(css=customCSS, theme=small_and_beautiful_theme) as demo:
|
|
| 156 |
|
| 157 |
with gr.Tab(label="高级"):
|
| 158 |
gr.Markdown("# ⚠️ 务必谨慎更改 ⚠️\n\n如果无法使用请恢复默认设置")
|
| 159 |
-
default_btn = gr.Button("🔙 恢复默认设置")
|
| 160 |
|
| 161 |
with gr.Accordion("参数", open=False):
|
| 162 |
temperature_slider = gr.Slider(
|
|
@@ -177,7 +176,7 @@ with gr.Blocks(css=customCSS, theme=small_and_beautiful_theme) as demo:
|
|
| 177 |
)
|
| 178 |
n_choices_slider = gr.Slider(
|
| 179 |
minimum=1,
|
| 180 |
-
maximum=
|
| 181 |
value=1,
|
| 182 |
step=1,
|
| 183 |
interactive=True,
|
|
@@ -192,8 +191,8 @@ with gr.Blocks(css=customCSS, theme=small_and_beautiful_theme) as demo:
|
|
| 192 |
)
|
| 193 |
max_tokens_slider = gr.Slider(
|
| 194 |
minimum=1,
|
| 195 |
-
maximum=
|
| 196 |
-
value=
|
| 197 |
step=1,
|
| 198 |
interactive=True,
|
| 199 |
label="max tokens",
|
|
@@ -247,6 +246,7 @@ with gr.Blocks(css=customCSS, theme=small_and_beautiful_theme) as demo:
|
|
| 247 |
lines=2,
|
| 248 |
)
|
| 249 |
changeProxyBtn = gr.Button("🔄 设置代理地址")
|
|
|
|
| 250 |
|
| 251 |
gr.Markdown(CHUANHU_DESCRIPTION)
|
| 252 |
gr.HTML(FOOTER.format(versions=versions_html()), elem_id="footer")
|
|
|
|
| 156 |
|
| 157 |
with gr.Tab(label="高级"):
|
| 158 |
gr.Markdown("# ⚠️ 务必谨慎更改 ⚠️\n\n如果无法使用请恢复默认设置")
|
|
|
|
| 159 |
|
| 160 |
with gr.Accordion("参数", open=False):
|
| 161 |
temperature_slider = gr.Slider(
|
|
|
|
| 176 |
)
|
| 177 |
n_choices_slider = gr.Slider(
|
| 178 |
minimum=1,
|
| 179 |
+
maximum=10,
|
| 180 |
value=1,
|
| 181 |
step=1,
|
| 182 |
interactive=True,
|
|
|
|
| 191 |
)
|
| 192 |
max_tokens_slider = gr.Slider(
|
| 193 |
minimum=1,
|
| 194 |
+
maximum=32768,
|
| 195 |
+
value=1000,
|
| 196 |
step=1,
|
| 197 |
interactive=True,
|
| 198 |
label="max tokens",
|
|
|
|
| 246 |
lines=2,
|
| 247 |
)
|
| 248 |
changeProxyBtn = gr.Button("🔄 设置代理地址")
|
| 249 |
+
default_btn = gr.Button("🔙 恢复默认设置")
|
| 250 |
|
| 251 |
gr.Markdown(CHUANHU_DESCRIPTION)
|
| 252 |
gr.HTML(FOOTER.format(versions=versions_html()), elem_id="footer")
|