Update app.py
Browse files
app.py
CHANGED
@@ -15,7 +15,7 @@ from transformers import AutoModelForSequenceClassification, AutoTokenizer
|
|
15 |
# Set up environment, Pinecone is a database
|
16 |
cache_dir = None # Directory for cache
|
17 |
Huggingface_token = st.secrets["HUGGINGFACEHUB_API_TOKEN"] # Huggingface API key
|
18 |
-
pc = Pinecone(api_key=st.secrets["PINECONE_API_KEY"] # Database API key
|
19 |
index = pc.Index(st.secrets["Index_Name"]) # Database index name
|
20 |
|
21 |
# Initialize embedding model (LLM will be saved to cache_dir if assigned)
|
|
|
15 |
# Set up environment, Pinecone is a database
|
16 |
cache_dir = None # Directory for cache
|
17 |
Huggingface_token = st.secrets["HUGGINGFACEHUB_API_TOKEN"] # Huggingface API key
|
18 |
+
pc = Pinecone(api_key=st.secrets["PINECONE_API_KEY"]) # Database API key
|
19 |
index = pc.Index(st.secrets["Index_Name"]) # Database index name
|
20 |
|
21 |
# Initialize embedding model (LLM will be saved to cache_dir if assigned)
|