Kate0816 commited on
Commit
78d886e
·
1 Parent(s): f48e7f3

Update ChuanhuChatbot.py

Browse files
Files changed (1) hide show
  1. ChuanhuChatbot.py +2 -11
ChuanhuChatbot.py CHANGED
@@ -196,20 +196,11 @@ with gr.Blocks(theme=small_and_beautiful_theme) as demo:
196
  obj="toolbox"), elem_classes="close-btn")
197
 
198
 
199
- with gr.Accordion(label=i18n("知識庫"), open=True):
200
- use_websearch_checkbox = gr.Checkbox(label=i18n(
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
 
210
 
211
 
212
- with gr.Tabs(elem_id="chuanhu-toolbox-tabs",visible=False) as tabs:
213
  with gr.Tab(label=i18n("對話")):
214
  keyTxt = gr.Textbox(
215
  show_label=True,
 
196
  obj="toolbox"), elem_classes="close-btn")
197
 
198
 
199
+
 
 
 
 
 
 
 
 
 
200
 
201
 
202
 
203
+ with gr.Tabs(elem_id="chuanhu-toolbox-tabs",visible=True) as tabs:
204
  with gr.Tab(label=i18n("對話")):
205
  keyTxt = gr.Textbox(
206
  show_label=True,