Spaces:
Runtime error
Runtime error
Kushwanth Chowday Kandala
commited on
Commit
•
79497a3
1
Parent(s):
3ae066d
update app.py
Browse files
app.py
CHANGED
@@ -44,7 +44,7 @@ PINECONE_API_KEY=os.getenv("PINECONE_API_KEY")
|
|
44 |
PINECONE_ENV=os.getenv("PINECONE_ENV")
|
45 |
PINECONE_ENVIRONMENT=os.getenv("PINECONE_ENVIRONMENT")
|
46 |
|
47 |
-
pc = PineconeGRPC( api_key=os.environ.get("PINECONE_API_KEY") ) # Now do stuff if 'my_index' not in pc.list_indexes().names(): pc.create_index( name='my_index', dimension=1536, metric='euclidean', spec=ServerlessSpec( cloud='aws', region='us-west-2' ) )
|
48 |
|
49 |
def connect_pinecone():
|
50 |
pinecone = PineconeGRPC(api_key=PINECONE_API_KEY, environment=PINECONE_ENV)
|
|
|
44 |
PINECONE_ENV=os.getenv("PINECONE_ENV")
|
45 |
PINECONE_ENVIRONMENT=os.getenv("PINECONE_ENVIRONMENT")
|
46 |
|
47 |
+
# pc = PineconeGRPC( api_key=os.environ.get("PINECONE_API_KEY") ) # Now do stuff if 'my_index' not in pc.list_indexes().names(): pc.create_index( name='my_index', dimension=1536, metric='euclidean', spec=ServerlessSpec( cloud='aws', region='us-west-2' ) )
|
48 |
|
49 |
def connect_pinecone():
|
50 |
pinecone = PineconeGRPC(api_key=PINECONE_API_KEY, environment=PINECONE_ENV)
|