Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -34,7 +34,7 @@ def retrieve_and_rerank_faiss(job_duties, model_name="BAAI/bge-m3", top_k=4):
|
|
34 |
if not os.path.exists("/data/isco_taxonomy.index"):
|
35 |
isco_taxonomy = load_isco_taxonomy('isco_taxonomy.jsonl')
|
36 |
create_faiss_index(isco_taxonomy)
|
37 |
-
index = faiss.read_index("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)
|
|
|
34 |
if not os.path.exists("/data/isco_taxonomy.index"):
|
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)
|