Spaces:
Runtime error
Runtime error
Update ChuanhuChatbot.py
Browse files- ChuanhuChatbot.py +5 -5
ChuanhuChatbot.py
CHANGED
@@ -201,9 +201,9 @@ with gr.Blocks(theme=small_and_beautiful_theme) as demo:
|
|
201 |
"使用在线搜索"), value=False, elem_classes="switch-checkbox", elem_id="gr-websearch-cb", visible=False)
|
202 |
index_files = gr.Files(label=i18n(
|
203 |
"上传"), type="file", elem_id="upload-index-file")
|
204 |
-
|
205 |
-
|
206 |
-
|
207 |
# TODO: 公式ocr
|
208 |
# formula_ocr = gr.Checkbox(label=i18n("识别公式"), value=advance_docs["pdf"].get("formula_ocr", False))
|
209 |
|
@@ -260,8 +260,8 @@ with gr.Blocks(theme=small_and_beautiful_theme) as demo:
|
|
260 |
"使用在线搜索"), value=False, elem_classes="switch-checkbox", elem_id="gr-websearch-cb", visible=False)
|
261 |
index_files = gr.Files(label=i18n(
|
262 |
"上传"), type="file", elem_id="upload-index-file")
|
263 |
-
|
264 |
-
|
265 |
summarize_btn = gr.Button(i18n("总结"))
|
266 |
# TODO: 公式ocr
|
267 |
# formula_ocr = gr.Checkbox(label=i18n("识别公式"), value=advance_docs["pdf"].get("formula_ocr", False))
|
|
|
201 |
"使用在线搜索"), value=False, elem_classes="switch-checkbox", elem_id="gr-websearch-cb", visible=False)
|
202 |
index_files = gr.Files(label=i18n(
|
203 |
"上传"), type="file", elem_id="upload-index-file")
|
204 |
+
two_column = gr.Checkbox(label=i18n(
|
205 |
+
"双栏pdf"), value=advance_docs["pdf"].get("two_column", False))
|
206 |
+
summarize_btn = gr.Button(i18n("总结"))
|
207 |
# TODO: 公式ocr
|
208 |
# formula_ocr = gr.Checkbox(label=i18n("识别公式"), value=advance_docs["pdf"].get("formula_ocr", False))
|
209 |
|
|
|
260 |
"使用在线搜索"), value=False, elem_classes="switch-checkbox", elem_id="gr-websearch-cb", visible=False)
|
261 |
index_files = gr.Files(label=i18n(
|
262 |
"上传"), type="file", elem_id="upload-index-file")
|
263 |
+
two_column = gr.Checkbox(label=i18n(
|
264 |
+
"双栏pdf"), value=advance_docs["pdf"].get("two_column", False))
|
265 |
summarize_btn = gr.Button(i18n("总结"))
|
266 |
# TODO: 公式ocr
|
267 |
# formula_ocr = gr.Checkbox(label=i18n("识别公式"), value=advance_docs["pdf"].get("formula_ocr", False))
|