Spaces:
Runtime error
Runtime error
Update ChuanhuChatbot.py
Browse files- ChuanhuChatbot.py +4 -4
ChuanhuChatbot.py
CHANGED
@@ -204,7 +204,7 @@ with gr.Blocks(theme=small_and_beautiful_theme) as demo:
|
|
204 |
visible=not HIDE_MY_KEY,
|
205 |
label="API-Key",
|
206 |
)
|
207 |
-
with gr.Accordion(label="Prompt", open=True):
|
208 |
systemPromptTxt = gr.Textbox(
|
209 |
show_label=True,
|
210 |
placeholder=i18n("在这里输入System Prompt..."),
|
@@ -240,7 +240,7 @@ with gr.Blocks(theme=small_and_beautiful_theme) as demo:
|
|
240 |
container=False,
|
241 |
)
|
242 |
gr.Markdown("---", elem_classes="hr-line")
|
243 |
-
with gr.Accordion(label=i18n("知识库"), open=True):
|
244 |
use_websearch_checkbox = gr.Checkbox(label=i18n(
|
245 |
"使用在线搜索"), value=False, elem_classes="switch-checkbox", elem_id="gr-websearch-cb", visible=False)
|
246 |
index_files = gr.Files(label=i18n(
|
@@ -251,7 +251,7 @@ with gr.Blocks(theme=small_and_beautiful_theme) as demo:
|
|
251 |
# TODO: 公式ocr
|
252 |
# formula_ocr = gr.Checkbox(label=i18n("识别公式"), value=advance_docs["pdf"].get("formula_ocr", False))
|
253 |
|
254 |
-
with gr.Tab(label=i18n("参数")):
|
255 |
gr.Markdown(i18n("# ⚠️ 务必谨慎更改 ⚠️"),
|
256 |
elem_id="advanced-warning")
|
257 |
with gr.Accordion(i18n("参数"), open=True):
|
@@ -332,7 +332,7 @@ with gr.Blocks(theme=small_and_beautiful_theme) as demo:
|
|
332 |
value=user_name.value,
|
333 |
lines=1,
|
334 |
)
|
335 |
-
with gr.Tab(label=i18n("拓展")):
|
336 |
gr.Markdown(
|
337 |
"Will be here soon...\n(We hope)\n\nAnd we hope you can help us to make more extensions!")
|
338 |
|
|
|
204 |
visible=not HIDE_MY_KEY,
|
205 |
label="API-Key",
|
206 |
)
|
207 |
+
with gr.Accordion(label="Prompt", open=True , visible=False): #, visible=False
|
208 |
systemPromptTxt = gr.Textbox(
|
209 |
show_label=True,
|
210 |
placeholder=i18n("在这里输入System Prompt..."),
|
|
|
240 |
container=False,
|
241 |
)
|
242 |
gr.Markdown("---", elem_classes="hr-line")
|
243 |
+
with gr.Accordion(label=i18n("知识库"), open=True , visible=False): #, visible=False
|
244 |
use_websearch_checkbox = gr.Checkbox(label=i18n(
|
245 |
"使用在线搜索"), value=False, elem_classes="switch-checkbox", elem_id="gr-websearch-cb", visible=False)
|
246 |
index_files = gr.Files(label=i18n(
|
|
|
251 |
# TODO: 公式ocr
|
252 |
# formula_ocr = gr.Checkbox(label=i18n("识别公式"), value=advance_docs["pdf"].get("formula_ocr", False))
|
253 |
|
254 |
+
with gr.Tab(label=i18n("参数"), visible=False): #, visible=False
|
255 |
gr.Markdown(i18n("# ⚠️ 务必谨慎更改 ⚠️"),
|
256 |
elem_id="advanced-warning")
|
257 |
with gr.Accordion(i18n("参数"), open=True):
|
|
|
332 |
value=user_name.value,
|
333 |
lines=1,
|
334 |
)
|
335 |
+
with gr.Tab(label=i18n("拓展"), visible=False): #, visible=False
|
336 |
gr.Markdown(
|
337 |
"Will be here soon...\n(We hope)\n\nAnd we hope you can help us to make more extensions!")
|
338 |
|