mbosse99 commited on
Commit
ed022b6
·
verified ·
1 Parent(s): d5d652d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -242,6 +242,7 @@ def bot(history, job, resume, job_params):
242
 
243
  history[-1][1] = ""
244
  for chunk in response:
 
245
  if len(chunk["choices"][0]["delta"]) != 0 and hasattr(chunk["choices"][0]["delta"], "content"):
246
  history[-1][1] = history[-1][1] + chunk["choices"][0]["delta"]["content"]
247
  yield history
 
242
 
243
  history[-1][1] = ""
244
  for chunk in response:
245
+ print(chunk)
246
  if len(chunk["choices"][0]["delta"]) != 0 and hasattr(chunk["choices"][0]["delta"], "content"):
247
  history[-1][1] = history[-1][1] + chunk["choices"][0]["delta"]["content"]
248
  yield history