ivan-savchuk commited on
Commit
a0c9518
Β·
1 Parent(s): 7eec8cd

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -24,8 +24,9 @@ class DocumentSearch:
24
 
25
  def __init__(self):
26
  # loading docs and corresponding urls
27
- with open(labels_path, 'r') as json_file:
28
- self.docs = json.load(DocumentSearch.docs_path)
 
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