lisaude0512 commited on
Commit
94f7bca
·
verified ·
1 Parent(s): e63c0d1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -19,7 +19,7 @@ def respond(message, history):
19
  ):
20
  token = messages.choices[0].delta.content
21
  response+= token
22
- yield response["choices"][0]["message"]["content"].strip()
23
 
24
  chatbot = gr.ChatInterface(respond, type = "messages")
25
  chatbot.launch(debug=True)
 
19
  ):
20
  token = messages.choices[0].delta.content
21
  response+= token
22
+ yield response
23
 
24
  chatbot = gr.ChatInterface(respond, type = "messages")
25
  chatbot.launch(debug=True)