Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -132,7 +132,7 @@ auth_list = [(x, y) for (x, y) in user_csv[['username', 'password']].values]
|
|
132 |
|
133 |
## 如果要优化显示效果,参见: https://gradio.app/theming-guide/
|
134 |
try:
|
135 |
-
inputs = [gr.inputs.Textbox(lines=5, label="请输入你的问题/任务"), gr.Radio(['默认ChatGPT模式', '联网增强模式'], label="ChatGPT运行模式")] #! working. 如果有多个input,那么需要把这些input放在一个list里面,然后传给inputs。注意这里如果更改了选项的文字,需要到chatbot中更改对应的文字。
|
136 |
outputs = gr.Textbox(lines=11, label="ChatGPT的回答").style(show_copy_button=True)
|
137 |
interface = gr.Interface(
|
138 |
# fn=chatbot,
|
|
|
132 |
|
133 |
## 如果要优化显示效果,参见: https://gradio.app/theming-guide/
|
134 |
try:
|
135 |
+
inputs = [gr.inputs.Textbox(lines=5, label="请输入你的问题/任务").style(show_copy_button=True), gr.Radio(['默认ChatGPT模式', '联网增强模式'], label="ChatGPT运行模式")] #! working. 如果有多个input,那么需要把这些input放在一个list里面,然后传给inputs。注意这里如果更改了选项的文字,需要到chatbot中更改对应的文字。
|
136 |
outputs = gr.Textbox(lines=11, label="ChatGPT的回答").style(show_copy_button=True)
|
137 |
interface = gr.Interface(
|
138 |
# fn=chatbot,
|