Tuchuanhuhuhu commited on
Commit
438a056
·
1 Parent(s): c492518

加入勾选框

Browse files
Files changed (1) hide show
  1. ChuanhuChatbot.py +2 -1
ChuanhuChatbot.py CHANGED
@@ -90,6 +90,7 @@ with gr.Blocks(css=customCSS, theme=small_and_beautiful_theme) as demo:
90
  use_streaming_checkbox = gr.Checkbox(
91
  label=i18n("实时传输回答"), value=True, visible=ENABLE_STREAMING_OPTION
92
  )
 
93
  single_turn_checkbox = gr.Checkbox(label=i18n("单轮对话"), value=False)
94
  use_websearch_checkbox = gr.Checkbox(label=i18n("使用在线搜索"), value=False)
95
  render_latex_checkbox = gr.Checkbox(
@@ -268,7 +269,7 @@ with gr.Blocks(css=customCSS, theme=small_and_beautiful_theme) as demo:
268
 
269
  gr.Markdown(CHUANHU_DESCRIPTION, elem_id="description")
270
  gr.HTML(FOOTER.format(versions=versions_html()), elem_id="footer")
271
-
272
  # https://github.com/gradio-app/gradio/pull/3296
273
  def create_greeting(request: gr.Request):
274
  if hasattr(request, "username") and request.username: # is not None or is not ""
 
90
  use_streaming_checkbox = gr.Checkbox(
91
  label=i18n("实时传输回答"), value=True, visible=ENABLE_STREAMING_OPTION
92
  )
93
+ autogpt_mode = gr.Checkbox(label=i18n("AutoGPT 模式"), value=True)
94
  single_turn_checkbox = gr.Checkbox(label=i18n("单轮对话"), value=False)
95
  use_websearch_checkbox = gr.Checkbox(label=i18n("使用在线搜索"), value=False)
96
  render_latex_checkbox = gr.Checkbox(
 
269
 
270
  gr.Markdown(CHUANHU_DESCRIPTION, elem_id="description")
271
  gr.HTML(FOOTER.format(versions=versions_html()), elem_id="footer")
272
+
273
  # https://github.com/gradio-app/gradio/pull/3296
274
  def create_greeting(request: gr.Request):
275
  if hasattr(request, "username") and request.username: # is not None or is not ""