singhankur01 commited on
Commit
3ded8a9
·
verified ·
1 Parent(s): 5b9ca00

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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
- response.append(msg.content.strip())
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