Spaces:
Runtime error
Runtime error
msg
Browse files
main.py
CHANGED
|
@@ -13,7 +13,7 @@ import os
|
|
| 13 |
app = FastAPI(title="Image & Text Search API", version="1.0")
|
| 14 |
|
| 15 |
# ✅ Initialize Pinecone Properly
|
| 16 |
-
PINECONE_API_KEY = os.getenv("PINECONE_API_KEY", "
|
| 17 |
INDEX_NAME = "images-index"
|
| 18 |
|
| 19 |
pc = pinecone.Pinecone(api_key=PINECONE_API_KEY)
|
|
|
|
| 13 |
app = FastAPI(title="Image & Text Search API", version="1.0")
|
| 14 |
|
| 15 |
# ✅ Initialize Pinecone Properly
|
| 16 |
+
PINECONE_API_KEY = os.getenv("PINECONE_API_KEY", "pcsk_5W2aRh_QXKhMXdMUC7NVXWPXgpcT6J7cxhpvshc7MYWoPAqpRA8vmwes2Bx2xVnqYXeqme") # Replace with actual API key
|
| 17 |
INDEX_NAME = "images-index"
|
| 18 |
|
| 19 |
pc = pinecone.Pinecone(api_key=PINECONE_API_KEY)
|