Upload predict.py
Browse files- 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
|