Update app.py
Browse files
app.py
CHANGED
@@ -16,8 +16,8 @@ import logging
|
|
16 |
# Set up environment, Pinecone is a database
|
17 |
st.write(
|
18 |
"Has environment variables been set:",
|
19 |
-
os.environ["API_TOKEN"] == st.secrets["HUGGINGFACEHUB_API_TOKEN"]
|
20 |
-
os.environ["PINECONE_API_KEY"] == st.secrets["PINECONE_API_KEY"]
|
21 |
os.environ["Index_Name"] == st.secrets["Index_Name"])
|
22 |
cache_dir = os.getenv("CACHE_DIR") # Directory for cache
|
23 |
Huggingface_token = os.getenv("API_TOKEN") # Huggingface API key
|
|
|
16 |
# Set up environment, Pinecone is a database
|
17 |
st.write(
|
18 |
"Has environment variables been set:",
|
19 |
+
os.environ["API_TOKEN"] == st.secrets["HUGGINGFACEHUB_API_TOKEN"] and
|
20 |
+
os.environ["PINECONE_API_KEY"] == st.secrets["PINECONE_API_KEY"] and
|
21 |
os.environ["Index_Name"] == st.secrets["Index_Name"])
|
22 |
cache_dir = os.getenv("CACHE_DIR") # Directory for cache
|
23 |
Huggingface_token = os.getenv("API_TOKEN") # Huggingface API key
|