Leiyan525 commited on
Commit
aab700e
·
1 Parent(s): b1ed013

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -40,8 +40,8 @@ with gr.Blocks() as demo:
40
  openai_apikey = gr.Textbox(label="输入你的 OpenAI 的 API Key")
41
  chatbot = gr.Chatbot(label="历史对话")
42
  msg = gr.Textbox(label="输入消息,按回车发送")
43
- msg.submit(clear, [msg, chatbot], chat_history).then(
44
- respond, openai_apikey, chat_history
45
  )
46
 
47
  demo.launch()
 
40
  openai_apikey = gr.Textbox(label="输入你的 OpenAI 的 API Key")
41
  chatbot = gr.Chatbot(label="历史对话")
42
  msg = gr.Textbox(label="输入消息,按回车发送")
43
+ msg.submit(clear, [msg, chatbot],[msg, chatbot]).then(
44
+ respond, openai_apikey, chatbot
45
  )
46
 
47
  demo.launch()