Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -46,7 +46,7 @@ if collection.count() == 0:
|
|
46 |
print("Indexing complete.")
|
47 |
|
48 |
# Use lightweight extractive QA model
|
49 |
-
qa_pipeline = pipeline("question-answering", model="
|
50 |
|
51 |
# QA function
|
52 |
def answer_question(user_question):
|
|
|
46 |
print("Indexing complete.")
|
47 |
|
48 |
# Use lightweight extractive QA model
|
49 |
+
qa_pipeline = pipeline("question-answering", model="deepset/roberta-base-squad2", device=-1)
|
50 |
|
51 |
# QA function
|
52 |
def answer_question(user_question):
|