Team Ai
Apppublic

PrayingBird/llm-code-deployment-api

sourceHugging Faceupdated 1y agoView on Hugging Face
0likes
config.py21 linesDownload Raw Back to root
1from pydantic_settings import BaseSettings, SettingsConfigDict2from functools import lru_cache3import os4class Settings(BaseSettings):5    GEMINI_API_KEY: str6    GITHUB_TOKEN: str7    STUDENT_SECRET: str8    GITHUB_USERNAME: str9    10    model_config = SettingsConfigDict(11        env_file=".env",12        extra="ignore"13    )14    def __init__(self, **kwargs):15# Read from environment first (for Hugging Face Spaces)16# Then fall back to .env file (for local development)17        super().__init__(**kwargs)18@lru_cache()19def get_settings():20    return Settings()21