npc0 commited on
Commit
cf723de
·
1 Parent(s): 4ce8184

Update app.py

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