Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -15,9 +15,8 @@ from pinecone import ServerlessSpec
|
|
15 |
openai_api_key = os.getenv("OPENAI_API_KEY")
|
16 |
|
17 |
# Initialize Pinecone with PineconeGRPC
|
18 |
-
|
19 |
-
pc = Pinecone(api_key=
|
20 |
-
|
21 |
# Define index name and parameters
|
22 |
index_name = "italy-kg"
|
23 |
|
|
|
15 |
openai_api_key = os.getenv("OPENAI_API_KEY")
|
16 |
|
17 |
# Initialize Pinecone with PineconeGRPC
|
18 |
+
from pinecone import Pinecone
|
19 |
+
pc = Pinecone(api_key=os.environ['PINECONE_API_KEY'])
|
|
|
20 |
# Define index name and parameters
|
21 |
index_name = "italy-kg"
|
22 |
|