Spaces:
Runtime error
Runtime error
minor
Browse files- app.py +2 -0
- data/faiss_document_store.db +3 -0
app.py
CHANGED
@@ -5,6 +5,7 @@ import pandas as pd
|
|
5 |
import random
|
6 |
import time
|
7 |
import logging
|
|
|
8 |
from json import JSONDecodeError
|
9 |
|
10 |
from transformers import AutoModelForSequenceClassification, AutoTokenizer, AutoConfig
|
@@ -137,6 +138,7 @@ def start_haystack():
|
|
137 |
"""
|
138 |
load document store, retriever, entailment checker and create pipeline
|
139 |
"""
|
|
|
140 |
document_store = FAISSDocumentStore(
|
141 |
faiss_index_path=f"./data/my_faiss_index.faiss",
|
142 |
faiss_config_path=f"./data/my_faiss_index.json",
|
|
|
5 |
import random
|
6 |
import time
|
7 |
import logging
|
8 |
+
import shutil
|
9 |
from json import JSONDecodeError
|
10 |
|
11 |
from transformers import AutoModelForSequenceClassification, AutoTokenizer, AutoConfig
|
|
|
138 |
"""
|
139 |
load document store, retriever, entailment checker and create pipeline
|
140 |
"""
|
141 |
+
shutil.copy("./data/faiss_document_store.db", ".")
|
142 |
document_store = FAISSDocumentStore(
|
143 |
faiss_index_path=f"./data/my_faiss_index.faiss",
|
144 |
faiss_config_path=f"./data/my_faiss_index.json",
|
data/faiss_document_store.db
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:ab674250b72f746319df5ef56f4954c666e232fab804940e2cee662dffebe1c9
|
3 |
+
size 112242688
|