Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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="
|
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 |
)
|