KiraPGR commited on
Commit
9233d2e
·
verified ·
1 Parent(s): 8c6b351

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -47,7 +47,7 @@ def predict(inputs, chatbot):
47
  if chunk.choices[0].delta.content:
48
  print(chunk.choices[0].delta.content, end="", flush=True)
49
  new_message["content"] += chunk.choices[0].delta.content
50
- yield new_message
51
 
52
  messages.append(new_message)
53
 
 
47
  if chunk.choices[0].delta.content:
48
  print(chunk.choices[0].delta.content, end="", flush=True)
49
  new_message["content"] += chunk.choices[0].delta.content
50
+ yield new_message["content"]
51
 
52
  messages.append(new_message)
53