Spaces:
Sleeping
Sleeping
Update os.getenv()
Browse files- os.getenv() +3 -1
os.getenv()
CHANGED
@@ -1 +1,3 @@
|
|
1 |
-
|
|
|
|
|
|
1 |
+
HUGGINGFACE_API_KEY = os.getenv("HUGGINGFACE_API_KEY")
|
2 |
+
if not HUGGINGFACE_API_KEY:
|
3 |
+
raise ValueError("❌ Missing Hugging Face API Key. Please set it in Hugging Face Secrets.")
|