BAAI
/

ldwang commited on
Commit
02760f6
1 Parent(s): 380ba89

Upload predict.py

Browse files
Files changed (1) hide show
  1. predict.py +1 -1
predict.py CHANGED
@@ -436,7 +436,7 @@ def predict(model, text, tokenizer=None,
436
  probs = probs[1:]
437
 
438
  # Update history
439
- history.insert(0, ('USER', text))
440
  history.insert(0, ('ASSISTANT', out))
 
441
 
442
  return out
 
436
  probs = probs[1:]
437
 
438
  # Update history
 
439
  history.insert(0, ('ASSISTANT', out))
440
+ history.insert(0, ('USER', text))
441
 
442
  return out