Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -62,7 +62,8 @@ document_store = InMemoryDocumentStore() # use_bm25=True
|
|
62 |
load_and_write_data(document_store)
|
63 |
retriever = TfidfRetriever(document_store=document_store)
|
64 |
reader = FARMReader(model_name_or_path="DeepPavlov/rubert-base-cased-sentence",
|
65 |
-
use_gpu=False
|
|
|
66 |
pipeline = ExtractiveQAPipeline(reader, retriever)
|
67 |
|
68 |
|
|
|
62 |
load_and_write_data(document_store)
|
63 |
retriever = TfidfRetriever(document_store=document_store)
|
64 |
reader = FARMReader(model_name_or_path="DeepPavlov/rubert-base-cased-sentence",
|
65 |
+
use_gpu=False,
|
66 |
+
num_processes=1)
|
67 |
pipeline = ExtractiveQAPipeline(reader, retriever)
|
68 |
|
69 |
|