Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -15,7 +15,7 @@ app.config["UPLOAD_FOLDER"] = UPLOAD_FOLDER
|
|
| 15 |
ALLOWED_EXTENSIONS = {"txt", "csv", "json", "pdf", "docx"}
|
| 16 |
|
| 17 |
# Retrieve Hugging Face API key securely from environment variables
|
| 18 |
-
api_key = os.getenv("
|
| 19 |
if not api_key:
|
| 20 |
raise ValueError("Hugging Face API key not found. Set 'HF_API_KEY' in your Space secrets.")
|
| 21 |
|
|
|
|
| 15 |
ALLOWED_EXTENSIONS = {"txt", "csv", "json", "pdf", "docx"}
|
| 16 |
|
| 17 |
# Retrieve Hugging Face API key securely from environment variables
|
| 18 |
+
api_key = os.getenv("APIHUGGING")
|
| 19 |
if not api_key:
|
| 20 |
raise ValueError("Hugging Face API key not found. Set 'HF_API_KEY' in your Space secrets.")
|
| 21 |
|