FredZhang7 commited on
Commit
d1ada29
1 Parent(s): 3025d66

remove repeated yield

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -156,7 +156,8 @@ def generator(
156
  del out
157
  del state
158
  gc.collect()
159
- yield out_str.strip()
 
160
 
161
 
162
  def user(message, chatbot):
 
156
  del out
157
  del state
158
  gc.collect()
159
+ if no_history:
160
+ yield out_str.strip()
161
 
162
 
163
  def user(message, chatbot):