Spaces:
Sleeping
Sleeping
Update main.py
Browse files
main.py
CHANGED
@@ -47,7 +47,7 @@ async def perform_document_qa(
|
|
47 |
# Perform document question answering for each question using BERT-based model
|
48 |
answers_dict = {}
|
49 |
for question in question_list:
|
50 |
-
result =
|
51 |
'question': question,
|
52 |
'context': text_content
|
53 |
})
|
|
|
47 |
# Perform document question answering for each question using BERT-based model
|
48 |
answers_dict = {}
|
49 |
for question in question_list:
|
50 |
+
result = nlp_qa({
|
51 |
'question': question,
|
52 |
'context': text_content
|
53 |
})
|