Spaces:
Runtime error
Runtime error
Update app.py
Browse filespinecone API KEY
app.py
CHANGED
|
@@ -7,8 +7,6 @@ pinecone.init(
|
|
| 7 |
api_key=PINECONE_API_KEY, # find at app.pinecone.io
|
| 8 |
environment="eu-west4-gcp" # next to api key in console
|
| 9 |
)
|
| 10 |
-
index_name = "yc-faq"
|
| 11 |
-
|
| 12 |
|
| 13 |
|
| 14 |
import gradio as gr
|
|
@@ -89,11 +87,7 @@ def print_docs(docs):
|
|
| 89 |
print(f"Chunk: {doc.page_content}")
|
| 90 |
print(f"Content: {doc.metadata['source']}\n")
|
| 91 |
|
| 92 |
-
|
| 93 |
-
pinecone.init(
|
| 94 |
-
api_key="078ea261-eaa8-4920-8af6-0870f7f8a096", # find at app.pinecone.io
|
| 95 |
-
environment="eu-west4-gcp" # next to api key in console
|
| 96 |
-
)
|
| 97 |
|
| 98 |
index_name = "yc-faq"
|
| 99 |
vectorstore = Pinecone.from_existing_index(index_name, embeddings)
|
|
|
|
| 7 |
api_key=PINECONE_API_KEY, # find at app.pinecone.io
|
| 8 |
environment="eu-west4-gcp" # next to api key in console
|
| 9 |
)
|
|
|
|
|
|
|
| 10 |
|
| 11 |
|
| 12 |
import gradio as gr
|
|
|
|
| 87 |
print(f"Chunk: {doc.page_content}")
|
| 88 |
print(f"Content: {doc.metadata['source']}\n")
|
| 89 |
|
| 90 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
| 91 |
|
| 92 |
index_name = "yc-faq"
|
| 93 |
vectorstore = Pinecone.from_existing_index(index_name, embeddings)
|