Spaces:
Runtime error
Runtime error
ivan-savchuk
commited on
Commit
Β·
a0c9518
1
Parent(s):
7eec8cd
Update app.py
Browse files
app.py
CHANGED
@@ -24,8 +24,9 @@ class DocumentSearch:
|
|
24 |
|
25 |
def __init__(self):
|
26 |
# loading docs and corresponding urls
|
27 |
-
with open(
|
28 |
-
self.docs = json.load(
|
|
|
29 |
# loading sbert encoder model
|
30 |
self.encoder = SentenceTransformer(DocumentSearch.enc_path)
|
31 |
# loading faiss index
|
|
|
24 |
|
25 |
def __init__(self):
|
26 |
# loading docs and corresponding urls
|
27 |
+
with open(DocumentSearch.docs_path, 'r') as json_file:
|
28 |
+
self.docs = json.load(json_file)
|
29 |
+
|
30 |
# loading sbert encoder model
|
31 |
self.encoder = SentenceTransformer(DocumentSearch.enc_path)
|
32 |
# loading faiss index
|