Spaces:
Configuration error
Configuration error
Update app.py
Browse files
app.py
CHANGED
|
@@ -36,8 +36,8 @@ app = Flask(__name__)
|
|
| 36 |
load_dotenv()
|
| 37 |
|
| 38 |
Pinecone_API_KEY = os.getenv("Pinecone_API_KEY")
|
| 39 |
-
os.environ["
|
| 40 |
-
if not
|
| 41 |
raise ValueError("Missing Pinecone API key. Set it in Hugging Face secrets.")
|
| 42 |
|
| 43 |
|
|
|
|
| 36 |
load_dotenv()
|
| 37 |
|
| 38 |
Pinecone_API_KEY = os.getenv("Pinecone_API_KEY")
|
| 39 |
+
os.environ["Pinecone_API_KEY"] = Pinecone_API_KEY
|
| 40 |
+
if not Pinecone_API_KEY:
|
| 41 |
raise ValueError("Missing Pinecone API key. Set it in Hugging Face secrets.")
|
| 42 |
|
| 43 |
|