Spaces:
Sleeping
Sleeping
Download app/config/settings.py from utkarsh134/LogoGeneration: direct link, hf CLI and curl.
- Browser
- Download file 798 Bytes
-
https://huggingface.co/spaces/utkarsh134/LogoGeneration/resolve/main/app/config/settings.py
- Command line
-
hf download hf://spaces/utkarsh134/LogoGeneration/app/config/settings.py
-
curl -L -o settings.py https://huggingface.co/spaces/utkarsh134/LogoGeneration/resolve/main/app/config/settings.py
798 Bytes
| import os | |
| from dotenv import load_dotenv | |
| load_dotenv() | |
| class Settings: | |
| GEMINI_API_KEY = os.getenv("GEMINI_API_KEY") | |
| if not GEMINI_API_KEY: | |
| raise ValueError("GEMINI_API_KEY not found in environment variables") | |
| # AWS credentials not needed as Reach Endpoint being used for storage | |
| # AWS_ACCESS_KEY_ID = os.getenv("AWS_ACCESS_KEY_ID") | |
| # AWS_SECRET_ACCESS_KEY = os.getenv("AWS_SECRET_ACCESS_KEY") | |
| # AWS_REGION = os.getenv("AWS_REGION") | |
| # S3_BUCKET_NAME = os.getenv("S3_BUCKET_NAME") | |
| UNSPLASH_API_KEY = os.getenv("UNSPLASH_API_KEY") | |
| # if not all([AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY, S3_BUCKET_NAME]): | |
| # raise ValueError("AWS credentials or S3 bucket name not found in environment variables") | |
| settings = Settings() | |