Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -26,7 +26,7 @@ if 'index_name' not in pc.list_indexes().names():
|
|
26 |
)
|
27 |
)
|
28 |
|
29 |
-
index =
|
30 |
|
31 |
# Initialize Hugging Face embeddings
|
32 |
embeddings = HuggingFaceEmbeddings(model_name="sentence-transformers/all-MiniLM-L6-v2")
|
|
|
26 |
)
|
27 |
)
|
28 |
|
29 |
+
index = pc.Index(index_name)
|
30 |
|
31 |
# Initialize Hugging Face embeddings
|
32 |
embeddings = HuggingFaceEmbeddings(model_name="sentence-transformers/all-MiniLM-L6-v2")
|