WillHeld commited on
Commit
515ea2f
·
verified ·
1 Parent(s): e99358f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -158,7 +158,7 @@ with gr.Blocks() as demo:
158
  with gr.Column(scale=3):
159
  # Custom chat function wrapper to update state
160
  def chat_with_state(message, history, state, temperature, top_p):
161
- for partial_response, updated_state in predict(message, history, temperature, top_p):
162
  # Update our state with each yield
163
  state = history.copy()
164
  yield partial_response, state
 
158
  with gr.Column(scale=3):
159
  # Custom chat function wrapper to update state
160
  def chat_with_state(message, history, state, temperature, top_p):
161
+ for partial_response in predict(message, history, temperature, top_p):
162
  # Update our state with each yield
163
  state = history.copy()
164
  yield partial_response, state