Spaces:
Sleeping
Sleeping
Update utils.py
Browse files
utils.py
CHANGED
@@ -20,7 +20,7 @@ headers = {"Authorization": f"Bearer {HF_API_TOKEN}"}
|
|
20 |
similarity_model = SentenceTransformer('paraphrase-MiniLM-L6-v2')
|
21 |
|
22 |
# Load dataset
|
23 |
-
with open("
|
24 |
dataset = json.load(f)
|
25 |
|
26 |
# Precompute embeddings
|
|
|
20 |
similarity_model = SentenceTransformer('paraphrase-MiniLM-L6-v2')
|
21 |
|
22 |
# Load dataset
|
23 |
+
with open("ds.json") as f:
|
24 |
dataset = json.load(f)
|
25 |
|
26 |
# Precompute embeddings
|