Spaces:
Runtime error
Runtime error
Update appStore/keyword_search.py
Browse files
appStore/keyword_search.py
CHANGED
@@ -32,7 +32,7 @@ def start_haystack(documents_processed):
|
|
32 |
document_store = InMemoryDocumentStore()
|
33 |
document_store.write_documents(documents_processed)
|
34 |
retriever = TfidfRetriever(document_store=document_store)
|
35 |
-
reader = FARMReader(model_name_or_path="
|
36 |
pipeline = ExtractiveQAPipeline(reader, retriever)
|
37 |
return pipeline
|
38 |
|
|
|
32 |
document_store = InMemoryDocumentStore()
|
33 |
document_store.write_documents(documents_processed)
|
34 |
retriever = TfidfRetriever(document_store=document_store)
|
35 |
+
reader = FARMReader(model_name_or_path="allenai/longformer-large-4096-finetuned-triviaqa", use_gpu=True) #deepset/roberta-base-squad2
|
36 |
pipeline = ExtractiveQAPipeline(reader, retriever)
|
37 |
return pipeline
|
38 |
|