moriire commited on
Commit
f181ae2
1 Parent(s): 66da31c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -0
app.py CHANGED
@@ -77,11 +77,14 @@ async def complete(
77
  stream=True
78
  )
79
  for chunk in output:
 
80
  delta = chunk['choices'][0]['delta']
81
  if 'role' in delta:
82
  print(delta['role'], end=': ')
83
  elif 'content' in delta:
84
  print(delta['content'], end='')
 
 
85
  et = time()
86
  output["time"] = et - st
87
  #return output
 
77
  stream=True
78
  )
79
  for chunk in output:
80
+ """
81
  delta = chunk['choices'][0]['delta']
82
  if 'role' in delta:
83
  print(delta['role'], end=': ')
84
  elif 'content' in delta:
85
  print(delta['content'], end='')
86
+ """
87
+ print(chunk)
88
  et = time()
89
  output["time"] = et - st
90
  #return output