CarlosMalaga
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -198,12 +198,12 @@ def load_model():
|
|
198 |
reader = RelikReaderForSpanExtraction("/home/user/app/models/small-extended-large-batch",
|
199 |
dataset_kwargs={"use_nme": True})
|
200 |
|
201 |
-
relik_question = Relik(reader=reader, retriever=retriever_question, window_size="none", top_k=100, task="span", device="
|
202 |
-
relik_intervention = Relik(reader=reader, retriever=retriever_intervention, window_size="none", top_k=100, task="span", device="
|
203 |
-
relik_outcome = Relik(reader=reader, retriever=retriever_outcome, window_size="none", top_k=100, task="span", device="
|
204 |
-
relik_question_db = Relik(reader=reader, retriever=retriever_question_db, window_size="none", top_k=100, task="span", device="
|
205 |
-
relik_intrervention_db = Relik(reader=reader, retriever=retriever_intervention_db, window_size="none", top_k=100, task="span", device="
|
206 |
-
relik_outcome_db = Relik(reader=reader, retriever=retriever_outcome_db, window_size="none", top_k=100, task="span", device="
|
207 |
|
208 |
return [relik_question, relik_intervention, relik_outcome, relik_question_db, relik_intrervention_db, relik_outcome_db]
|
209 |
|
|
|
198 |
reader = RelikReaderForSpanExtraction("/home/user/app/models/small-extended-large-batch",
|
199 |
dataset_kwargs={"use_nme": True})
|
200 |
|
201 |
+
relik_question = Relik(reader=reader, retriever=retriever_question, window_size="none", top_k=100, task="span", device="cpu", document_index_device="cpu")
|
202 |
+
relik_intervention = Relik(reader=reader, retriever=retriever_intervention, window_size="none", top_k=100, task="span", device="cpu", document_index_device="cpu")
|
203 |
+
relik_outcome = Relik(reader=reader, retriever=retriever_outcome, window_size="none", top_k=100, task="span", device="cpu", document_index_device="cpu")
|
204 |
+
relik_question_db = Relik(reader=reader, retriever=retriever_question_db, window_size="none", top_k=100, task="span", device="cpu", document_index_device="cpu")
|
205 |
+
relik_intrervention_db = Relik(reader=reader, retriever=retriever_intervention_db, window_size="none", top_k=100, task="span", device="cpu", document_index_device="cpu")
|
206 |
+
relik_outcome_db = Relik(reader=reader, retriever=retriever_outcome_db, window_size="none", top_k=100, task="span", device="cpu", document_index_device="cpu")
|
207 |
|
208 |
return [relik_question, relik_intervention, relik_outcome, relik_question_db, relik_intrervention_db, relik_outcome_db]
|
209 |
|