Spaces:
Sleeping
Sleeping
internomega-terrablue commited on
Commit ·
1a14fec
1
Parent(s): 9561794
pinecone variable change
Browse files
persistence/vector_store.py
CHANGED
|
@@ -22,10 +22,10 @@ class VectorStore:
|
|
| 22 |
|
| 23 |
from pinecone import Pinecone
|
| 24 |
|
| 25 |
-
api_key = os.environ.get("
|
| 26 |
if not api_key:
|
| 27 |
raise RuntimeError(
|
| 28 |
-
"
|
| 29 |
"Add it as a Secret in your HF Space settings."
|
| 30 |
)
|
| 31 |
|
|
|
|
| 22 |
|
| 23 |
from pinecone import Pinecone
|
| 24 |
|
| 25 |
+
api_key = os.environ.get("Pinecone_API")
|
| 26 |
if not api_key:
|
| 27 |
raise RuntimeError(
|
| 28 |
+
"Pinecone_API not found in environment. "
|
| 29 |
"Add it as a Secret in your HF Space settings."
|
| 30 |
)
|
| 31 |
|