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

Update dict

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -179,7 +179,7 @@ def predict(password_input, user_in_file):
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)
 
179
  history=""
180
  for chunk in completion:
181
  if chunk.choices[0].delta.content is not None:
182
+ history += chunk.choices[0].dict()
183
  time.sleep(0.05)
184
  yield history
185
  #conversation = chat_api.get_summary(user_in_file)