MJobe commited on
Commit
26decc6
1 Parent(s): 20f087e

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +1 -1
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