Pengi5659 commited on
Commit
52d933d
·
verified ·
1 Parent(s): 422d839

Update app.py

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