Update app.py
Browse files
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(
|