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

Update dict

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -179,7 +179,8 @@ 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()
 
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
+ print(chunk.choices[0].dict())
183
+ history += chunk.choices[0].delta.content
184
  time.sleep(0.05)
185
  yield history
186
  #conversation = chat_api.get_summary(user_in_file)