Sadmo commited on
Commit
6b754e7
·
verified ·
1 Parent(s): a820ec4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -22,7 +22,7 @@ def respond(message, history):
22
  ):
23
  token = messages.choices[0].delta.content
24
  response += token
25
- yield response['choices'][0]['message']['content'].strip()
26
 
27
  chatbot = gr.ChatInterface(respond, type = "messages", title = "SadhanaGPT for KWK", theme = gr.themes.Glass(), examples = ["How's the weather today?", "Who won the match?", "Is the sky green?"])
28
 
 
22
  ):
23
  token = messages.choices[0].delta.content
24
  response += token
25
+ yield response
26
 
27
  chatbot = gr.ChatInterface(respond, type = "messages", title = "SadhanaGPT for KWK", theme = gr.themes.Glass(), examples = ["How's the weather today?", "Who won the match?", "Is the sky green?"])
28