Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -13,8 +13,6 @@ import os
|
|
| 13 |
|
| 14 |
pkey = os.environ.get("PINECONE_KEY")
|
| 15 |
|
| 16 |
-
print("our pinecone key -> " + pkey)
|
| 17 |
-
|
| 18 |
|
| 19 |
with open('pinecone_text.py' ,'w') as fb:
|
| 20 |
fb.write(requests.get('https://storage.googleapis.com/gareth-pinecone-datasets/pinecone_text.py').text)
|
|
@@ -22,7 +20,7 @@ import pinecone_text
|
|
| 22 |
|
| 23 |
# init connection to pinecone
|
| 24 |
pinecone.init(
|
| 25 |
-
api_key=
|
| 26 |
environment="asia-southeast1-gcp-free" # find next to api key
|
| 27 |
)
|
| 28 |
|
|
|
|
| 13 |
|
| 14 |
pkey = os.environ.get("PINECONE_KEY")
|
| 15 |
|
|
|
|
|
|
|
| 16 |
|
| 17 |
with open('pinecone_text.py' ,'w') as fb:
|
| 18 |
fb.write(requests.get('https://storage.googleapis.com/gareth-pinecone-datasets/pinecone_text.py').text)
|
|
|
|
| 20 |
|
| 21 |
# init connection to pinecone
|
| 22 |
pinecone.init(
|
| 23 |
+
api_key=str(pkey), # app.pinecone.io
|
| 24 |
environment="asia-southeast1-gcp-free" # find next to api key
|
| 25 |
)
|
| 26 |
|