Hidayatmahar commited on
Commit
6b3815e
·
verified ·
1 Parent(s): 10b1cc2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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('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.")
 
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.")