Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -11,10 +11,10 @@ import shutil
|
|
11 |
from PIL import Image
|
12 |
import os
|
13 |
|
14 |
-
os.environ['p_key'] = 'Pinecone_Key'
|
15 |
#os.environ['g_key'] = 'Google_Translate_Key'
|
16 |
|
17 |
-
PineconeKey = os.environ.get('p_key')
|
18 |
#TranslateKey = os.environ.get('g_key')
|
19 |
|
20 |
with open('pinecone_text.py' ,'w') as fb:
|
@@ -23,7 +23,7 @@ import pinecone_text
|
|
23 |
|
24 |
# init connection to pinecone
|
25 |
pinecone.init(
|
26 |
-
api_key=
|
27 |
environment="asia-southeast1-gcp-free" # find next to api key
|
28 |
)
|
29 |
|
|
|
11 |
from PIL import Image
|
12 |
import os
|
13 |
|
14 |
+
#os.environ['p_key'] = 'Pinecone_Key'
|
15 |
#os.environ['g_key'] = 'Google_Translate_Key'
|
16 |
|
17 |
+
#PineconeKey = os.environ.get('p_key')
|
18 |
#TranslateKey = os.environ.get('g_key')
|
19 |
|
20 |
with open('pinecone_text.py' ,'w') as fb:
|
|
|
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 |
|