Spaces:
Sleeping
Sleeping
Fix except block indentation to match try statement
Browse files
main.py
CHANGED
|
@@ -196,14 +196,12 @@ async def process_query(request: QueryRequest):
|
|
| 196 |
session_id=session_id
|
| 197 |
)
|
| 198 |
|
| 199 |
-
|
| 200 |
-
|
| 201 |
-
|
| 202 |
-
|
| 203 |
-
|
| 204 |
-
|
| 205 |
-
|
| 206 |
-
|
| 207 |
-
if __name__ == "__main__":
|
| 208 |
import uvicorn
|
| 209 |
uvicorn.run(app, host="0.0.0.0", port=7860)
|
|
|
|
| 196 |
session_id=session_id
|
| 197 |
)
|
| 198 |
|
| 199 |
+
except Exception as e:
|
| 200 |
+
er.error(f"Error processing query: {str(e)}")
|
| 201 |
+
return QueryResponse(
|
| 202 |
+
ess=False,
|
| 203 |
+
error=f"Error: {str(e)}",
|
| 204 |
+
ion_id=session_id
|
| 205 |
+
f __name__ == "__main__":
|
|
|
|
|
|
|
| 206 |
import uvicorn
|
| 207 |
uvicorn.run(app, host="0.0.0.0", port=7860)
|