danieldux commited on
Commit
d4ab304
·
verified ·
1 Parent(s): aabb15d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -35,7 +35,7 @@ def retrieve_and_rerank_faiss(job_duties, model_name="BAAI/bge-m3", top_k=4):
35
  isco_taxonomy = load_isco_taxonomy('isco_taxonomy.jsonl')
36
  create_faiss_index(isco_taxonomy)
37
  index = faiss.read_index("/data/isco_taxonomy.index")
38
- with open("isco_taxonomy_mapping.json", "r") as f:
39
  isco_taxonomy = json.load(f)
40
  model = BGEM3FlagModel(model_name, use_fp16=True)
41
  query_embedding = model.encode([job_duties], max_length=256)["dense_vecs"]
 
35
  isco_taxonomy = load_isco_taxonomy('isco_taxonomy.jsonl')
36
  create_faiss_index(isco_taxonomy)
37
  index = faiss.read_index("/data/isco_taxonomy.index")
38
+ with open("/data/isco_taxonomy_mapping.json", "r") as f:
39
  isco_taxonomy = json.load(f)
40
  model = BGEM3FlagModel(model_name, use_fp16=True)
41
  query_embedding = model.encode([job_duties], max_length=256)["dense_vecs"]