Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -14,6 +14,7 @@ token = os.environ["HF_TOKEN"]
|
|
14 |
ST = SentenceTransformer("mixedbread-ai/mxbai-embed-large-v1")
|
15 |
|
16 |
dataset = load_dataset("Yoxas/statistical_literacyv2")
|
|
|
17 |
|
18 |
# Convert the list to a numpy array
|
19 |
embeddings_array = np.array(data["Abstract_Embeddings"])
|
@@ -36,7 +37,7 @@ new_data.set_format("numpy", columns=["Abstract_Embeddings"])
|
|
36 |
new_data.add_faiss_index("Abstract_Embeddings")
|
37 |
|
38 |
# Now you can use the Dataset with the Faiss index
|
39 |
-
|
40 |
|
41 |
model_id = "meta-llama/Meta-Llama-3-8B-Instruct"
|
42 |
|
|
|
14 |
ST = SentenceTransformer("mixedbread-ai/mxbai-embed-large-v1")
|
15 |
|
16 |
dataset = load_dataset("Yoxas/statistical_literacyv2")
|
17 |
+
data = dataset["train"]
|
18 |
|
19 |
# Convert the list to a numpy array
|
20 |
embeddings_array = np.array(data["Abstract_Embeddings"])
|
|
|
37 |
new_data.add_faiss_index("Abstract_Embeddings")
|
38 |
|
39 |
# Now you can use the Dataset with the Faiss index
|
40 |
+
|
41 |
|
42 |
model_id = "meta-llama/Meta-Llama-3-8B-Instruct"
|
43 |
|