Spaces:
Runtime error
Runtime error
Commit
·
c21090d
1
Parent(s):
fc7ab9b
Update app.py
Browse files
app.py
CHANGED
|
@@ -38,7 +38,8 @@ def load_vectorstore():
|
|
| 38 |
environment=os.getenv('PINECONE_ENV')
|
| 39 |
)
|
| 40 |
|
| 41 |
-
index = pinecone.GRPCIndex("youtube-index")
|
|
|
|
| 42 |
store = LocalFileStore("./cache/")
|
| 43 |
core_embeddings_model = OpenAIEmbeddings()
|
| 44 |
|
|
@@ -50,7 +51,6 @@ def load_vectorstore():
|
|
| 50 |
|
| 51 |
text_field = "text"
|
| 52 |
|
| 53 |
-
index = pinecone.Index("youtube-index")
|
| 54 |
|
| 55 |
vectorstore = Pinecone(
|
| 56 |
index,
|
|
|
|
| 38 |
environment=os.getenv('PINECONE_ENV')
|
| 39 |
)
|
| 40 |
|
| 41 |
+
#index = pinecone.GRPCIndex("youtube-index")
|
| 42 |
+
index = pinecone.Index("youtube-index")
|
| 43 |
store = LocalFileStore("./cache/")
|
| 44 |
core_embeddings_model = OpenAIEmbeddings()
|
| 45 |
|
|
|
|
| 51 |
|
| 52 |
text_field = "text"
|
| 53 |
|
|
|
|
| 54 |
|
| 55 |
vectorstore = Pinecone(
|
| 56 |
index,
|