ranchopanda0 commited on
Commit
7561df6
·
verified ·
1 Parent(s): 531b0aa

Update os.getenv()

Browse files
Files changed (1) hide show
  1. os.getenv() +3 -1
os.getenv() CHANGED
@@ -1 +1,3 @@
1
- from dotenv import load_dotenv # Load .env file
 
 
 
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.")