npc0 commited on
Commit
37be3e6
·
1 Parent(s): 35b13b1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -91,9 +91,8 @@ def predict(input, max_length, top_p, temperature, history):
91
 
92
  yield postprocess(response), history
93
 
94
- response = myChatMessage(role=response_piece.role, content=response_piece.content)
95
- history.append(response)
96
- yield response.content, history
97
 
98
 
99
  def reset_user_input():
 
91
 
92
  yield postprocess(response), history
93
 
94
+ history.append(myChatMessage(role=response_piece.role, content=response))
95
+ yield response, history
 
96
 
97
 
98
  def reset_user_input():