WillHeld commited on
Commit
e99358f
·
verified ·
1 Parent(s): 77129be

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -124,7 +124,7 @@ def predict(message, history, temperature, top_p):
124
  partial_text = ""
125
  for new_text in streamer:
126
  partial_text += new_text
127
- yield partial_text, state
128
 
129
  # After full generation, update state with assistant's response
130
  history.append({"role": "assistant", "content": partial_text})
 
124
  partial_text = ""
125
  for new_text in streamer:
126
  partial_text += new_text
127
+ yield partial_text
128
 
129
  # After full generation, update state with assistant's response
130
  history.append({"role": "assistant", "content": partial_text})