SS8297 commited on
Commit
a93c9ce
·
verified ·
1 Parent(s): f371772

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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 = read_file("language_model\pinecone_api_key.txt")
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