Gabriela Nicole Gonzalez Saez commited on
Commit
cf24fff
1 Parent(s): 33fb482

index local

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -39,8 +39,8 @@ from faiss import write_index, read_index
39
  import pickle
40
 
41
  def load_index(model):
42
- # with open('index/'+ model + '_metadata_ref.pkl', 'rb') as f:
43
- with open('local_index/'+ model + '_metadata_ref.pkl', 'rb') as f:
44
  loaded_dict = pickle.load(f)
45
  for type in ['tokens','words']:
46
  for kind in ['input', 'output']:
 
39
  import pickle
40
 
41
  def load_index(model):
42
+ with open('index/'+ model + '_metadata_ref.pkl', 'rb') as f:
43
+ # with open('local_index/'+ model + '_metadata_ref.pkl', 'rb') as f:
44
  loaded_dict = pickle.load(f)
45
  for type in ['tokens','words']:
46
  for kind in ['input', 'output']: