scutcyr commited on
Commit
5c3aab0
·
1 Parent(s): 0e3b272

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -35,7 +35,7 @@ def answer(history, sample=True, top_p=1, temperature=0.7):
35
  preprocess_history = []
36
 
37
  for i in range(len(history)):
38
- preprocess_history[i] = preprocess(text)
39
 
40
  #text = preprocess(text)
41
  #print('用户: '+text)
 
35
  preprocess_history = []
36
 
37
  for i in range(len(history)):
38
+ preprocess_history.append(preprocess(text))
39
 
40
  #text = preprocess(text)
41
  #print('用户: '+text)