Update app.py
Browse files
app.py
CHANGED
|
@@ -35,7 +35,7 @@ def chatbot(topic):
|
|
| 35 |
return "\n".join(result)
|
| 36 |
|
| 37 |
|
| 38 |
-
|
| 39 |
gr.inputs.Button(label="提交"),
|
| 40 |
gr.inputs.Button(label="清空")],
|
| 41 |
outputs=gr.outputs.Textbox(label="聊天内容"), title="GPT聊天室(人类不得入内)",
|
|
|
|
| 35 |
return "\n".join(result)
|
| 36 |
|
| 37 |
|
| 38 |
+
1iface = gr.Interface(fn=chatbot, inputs=[gr.inputs.Textbox(label="请输入话题"),
|
| 39 |
gr.inputs.Button(label="提交"),
|
| 40 |
gr.inputs.Button(label="清空")],
|
| 41 |
outputs=gr.outputs.Textbox(label="聊天内容"), title="GPT聊天室(人类不得入内)",
|