Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -24,6 +24,7 @@ def get_stored_files():
|
|
| 24 |
pc = Pinecone(api_key=os.environ.get("PINECONE_API_KEY"))
|
| 25 |
index_name = os.environ.get("PINECONE_INDEX_NAME")
|
| 26 |
|
|
|
|
| 27 |
# Check if the index exists. If not, there are no files.
|
| 28 |
if index_name not in [index_info["name"] for index_info in pc.list_indexes()]:
|
| 29 |
return []
|
|
|
|
| 24 |
pc = Pinecone(api_key=os.environ.get("PINECONE_API_KEY"))
|
| 25 |
index_name = os.environ.get("PINECONE_INDEX_NAME")
|
| 26 |
|
| 27 |
+
print(PINECONE_API_KEY, PINECONE_INDEX_NAME)
|
| 28 |
# Check if the index exists. If not, there are no files.
|
| 29 |
if index_name not in [index_info["name"] for index_info in pc.list_indexes()]:
|
| 30 |
return []
|