Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -6,7 +6,7 @@ import numpy as np
|
|
6 |
from datasets import load_dataset
|
7 |
|
8 |
# Step 1: Get the Pinecone API key from the environment variable (Hugging Face secret)
|
9 |
-
pinecone_api_key = st.secrets
|
10 |
|
11 |
if not pinecone_api_key:
|
12 |
st.error("Pinecone API key not found! Make sure to set the secret in Hugging Face settings.")
|
|
|
6 |
from datasets import load_dataset
|
7 |
|
8 |
# Step 1: Get the Pinecone API key from the environment variable (Hugging Face secret)
|
9 |
+
pinecone_api_key = st.secrets["PINECONE_API_KEY"] # Fetch Pinecone API key from Hugging Face secrets
|
10 |
|
11 |
if not pinecone_api_key:
|
12 |
st.error("Pinecone API key not found! Make sure to set the secret in Hugging Face settings.")
|