Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -34,7 +34,7 @@ document_encoder_model = SentenceTransformer("KBLab/sentence-bert-swedish-cased"
|
|
| 34 |
|
| 35 |
# Note: 'index1' has been pre-created in the pinecone console
|
| 36 |
# read the pinecone api key from a file
|
| 37 |
-
pinecone_api_key =
|
| 38 |
pc = Pinecone(api_key=pinecone_api_key)
|
| 39 |
index = pc.Index("index1")
|
| 40 |
|
|
|
|
| 34 |
|
| 35 |
# Note: 'index1' has been pre-created in the pinecone console
|
| 36 |
# read the pinecone api key from a file
|
| 37 |
+
pinecone_api_key = st.secrets["pinecone_api_key"]
|
| 38 |
pc = Pinecone(api_key=pinecone_api_key)
|
| 39 |
index = pc.Index("index1")
|
| 40 |
|