simonza commited on
Commit
df5d192
·
1 Parent(s): 0cad61b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -1
app.py CHANGED
@@ -17,13 +17,18 @@ import os
17
  #PineconeKey = os.environ.get('p_key')
18
  #TranslateKey = os.environ.get('g_key')
19
 
 
 
 
 
 
20
  with open('pinecone_text.py' ,'w') as fb:
21
  fb.write(requests.get('https://storage.googleapis.com/gareth-pinecone-datasets/pinecone_text.py').text)
22
  import pinecone_text
23
 
24
  # init connection to pinecone
25
  pinecone.init(
26
- api_key=Pinecone_Key, # app.pinecone.io
27
  environment="asia-southeast1-gcp-free" # find next to api key
28
  )
29
 
 
17
  #PineconeKey = os.environ.get('p_key')
18
  #TranslateKey = os.environ.get('g_key')
19
 
20
+ pkey = os.environ.getattribute("Pinecone_Key")
21
+
22
+
23
+
24
+
25
  with open('pinecone_text.py' ,'w') as fb:
26
  fb.write(requests.get('https://storage.googleapis.com/gareth-pinecone-datasets/pinecone_text.py').text)
27
  import pinecone_text
28
 
29
  # init connection to pinecone
30
  pinecone.init(
31
+ api_key=pkey, # app.pinecone.io
32
  environment="asia-southeast1-gcp-free" # find next to api key
33
  )
34