moriire commited on
Commit
0b4fed2
1 Parent(s): e3fb19c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -77,10 +77,10 @@ async def complete(
77
  stream=True
78
  )
79
  for item in output:
80
- print(item['choices'][0]['text'], end='')
81
  et = time()
82
  output["time"] = et - st
83
- return output
84
  except Exception as e:
85
  logger.error(f"Error in /complete endpoint: {e}")
86
  return JSONResponse(
 
77
  stream=True
78
  )
79
  for item in output:
80
+ print(item['choices'][0])#['text'], end='')
81
  et = time()
82
  output["time"] = et - st
83
+ #return output
84
  except Exception as e:
85
  logger.error(f"Error in /complete endpoint: {e}")
86
  return JSONResponse(