allinaigc commited on
Commit
ce07274
·
1 Parent(s): 4d127de

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -136,7 +136,7 @@ auth_list = [(x, y) for (x, y) in user_csv[['username', 'password']].values]
136
 
137
  ## 如果要优化显示效果,参见: https://gradio.app/theming-guide/
138
  try:
139
- inputs = [gr.inputs.Textbox(lines=5, label="请输入你的问题/任务").style(show_copy_button=True), gr.Radio(['默认ChatGPT模式', '联网增强模式'], label="ChatGPT运行模式")] #! working. 如果有多个input,那么需要把这些input放在一个list里面,然后传给inputs。注意这里如果更改了选项的文字,需要到chatbot中更改对应的文字。
140
  outputs = gr.Textbox(lines=11, label="ChatGPT的回答").style(show_copy_button=True)
141
  interface = gr.Interface(
142
  # fn=chatbot,
@@ -144,7 +144,7 @@ try:
144
  inputs=inputs,
145
  outputs=outputs,
146
  title="极速版ChatGPT",
147
- description="_联网增强模式:可联网的ChatGPT, 使用Internet公共搜索引擎作为增强知识库。选择这个模式,信息检索范围将大幅增加,但回答质量将变得些许不稳定,且与一般搜索引擎如百度类似,回答记忆只限于一轮。_",
148
  theme=gr.themes.Soft(),
149
  css=css,
150
  )
 
136
 
137
  ## 如果要优化显示效果,参见: https://gradio.app/theming-guide/
138
  try:
139
+ inputs = [gr.inputs.Textbox(lines=5, label="请输入你的问题/任务").style(show_copy_button=True), gr.Radio(['默认ChatGPT模式', '联网增强模式'], value='默认ChatGPT模式', label="ChatGPT运行模式")] #! working. 如果有多个input,那么需要把这些input放在一个list里面,然后传给inputs。注意这里如果更改了选项的文字,需要到chatbot中更改对应的文字。
140
  outputs = gr.Textbox(lines=11, label="ChatGPT的回答").style(show_copy_button=True)
141
  interface = gr.Interface(
142
  # fn=chatbot,
 
144
  inputs=inputs,
145
  outputs=outputs,
146
  title="极速版ChatGPT",
147
+ description="推荐使用”默认模式“进行问题/任务提交(回答文字质量最佳),仅在需要查询2021年之后的信息或者中文垂直领域知识时才选择”联网增强模式“。",
148
  theme=gr.themes.Soft(),
149
  css=css,
150
  )