Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -269,7 +269,7 @@ async def run_hackrx(req: RunRequest):
|
|
| 269 |
for msg in results:
|
| 270 |
# Safely access the content field
|
| 271 |
if hasattr(msg, "content"):
|
| 272 |
-
|
| 273 |
|
| 274 |
return JSONResponse({"answers": answers}, status_code=200)
|
| 275 |
|
|
|
|
| 269 |
for msg in results:
|
| 270 |
# Safely access the content field
|
| 271 |
if hasattr(msg, "content"):
|
| 272 |
+
answers.append(msg.content.strip())
|
| 273 |
|
| 274 |
return JSONResponse({"answers": answers}, status_code=200)
|
| 275 |
|