zhaokeyao1 commited on
Commit
df32d48
·
1 Parent(s): e576d2f

Update content

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -176,10 +176,10 @@ def predict(password_input, user_in_file):
176
  ],
177
  stream=True
178
  )
179
- history[-1][1]=""
180
  for chunk in completion:
181
  if chunk.choices[0].delta.content is not None:
182
- history[-1][1]+=chunk.choices[0].dict()["content"]
183
  time.sleep(0.05)
184
  yield history
185
  #conversation = chat_api.get_summary(user_in_file)
 
176
  ],
177
  stream=True
178
  )
179
+ history=""
180
  for chunk in completion:
181
  if chunk.choices[0].delta.content is not None:
182
+ history += chunk.choices[0].dict()["content"]
183
  time.sleep(0.05)
184
  yield history
185
  #conversation = chat_api.get_summary(user_in_file)