Spaces:
Build error
Build error
Download testload.py from FlamingNeuron/llm-app: direct link, hf CLI and curl.
- Browser
- Download file 341 Bytes
-
https://huggingface.co/spaces/FlamingNeuron/llm-app/resolve/main/testload.py
- Command line
-
hf download hf://spaces/FlamingNeuron/llm-app/testload.py
-
curl -L -o testload.py https://huggingface.co/spaces/FlamingNeuron/llm-app/resolve/main/testload.py
341 Bytes
| from dotenv import load_dotenv | |
| import os | |
| load_dotenv() # Looks for a file named ".env" in the current directory | |
| api_key = os.getenv("OPENAI_API_KEY") | |
| if api_key: | |
| print("✅ API key loaded successfully.") | |
| print("First 8 characters:", api_key[:8] + "...") | |
| else: | |
| print("❌ API key not found. Check your .env file formatting.") | |