Merge branch 'main' into dev

pull/41/head
duzx16 2023-03-14 20:34:04 +08:00
commit 1e40acce6a
2 changed files with 4 additions and 2 deletions

View File

@ -9,7 +9,9 @@ MAX_TURNS = 20
MAX_BOXES = MAX_TURNS * 2 MAX_BOXES = MAX_TURNS * 2
def predict(input, history=[]): def predict(input, history=None):
if history is None:
history = []
response, history = model.chat(tokenizer, input, history) response, history = model.chat(tokenizer, input, history)
updates = [] updates = []
for query, response in history: for query, response in history: