Update app.py
Browse files
app.py
CHANGED
@@ -115,10 +115,10 @@ async def generate(gen:GenModel):
|
|
115 |
#print(chunk)
|
116 |
"""
|
117 |
et = time()
|
118 |
-
output["time"] = et - st
|
119 |
return output
|
120 |
except Exception as e:
|
121 |
-
logger.error(f"Error in /
|
122 |
return JSONResponse(
|
123 |
status_code=500, content={"message": "Internal Server Error"}
|
124 |
)
|
|
|
115 |
#print(chunk)
|
116 |
"""
|
117 |
et = time()
|
118 |
+
#output["time"] = et - st
|
119 |
return output
|
120 |
except Exception as e:
|
121 |
+
logger.error(f"Error in /generate endpoint: {e}")
|
122 |
return JSONResponse(
|
123 |
status_code=500, content={"message": "Internal Server Error"}
|
124 |
)
|