Spaces:
Sleeping
Sleeping
Update main.py
Browse files
main.py
CHANGED
@@ -112,7 +112,7 @@ async def perform_document_qa(
|
|
112 |
|
113 |
res = nlp_qa_v3(QA_input)
|
114 |
|
115 |
-
return res
|
116 |
except Exception as e:
|
117 |
return JSONResponse(content=f"Error processing file: {str(e)}", status_code=500)
|
118 |
|
|
|
112 |
|
113 |
res = nlp_qa_v3(QA_input)
|
114 |
|
115 |
+
return res['answer']
|
116 |
except Exception as e:
|
117 |
return JSONResponse(content=f"Error processing file: {str(e)}", status_code=500)
|
118 |
|