Spaces:
Sleeping
Sleeping
File size: 570 Bytes
bf78a48 a3348ad bf78a48 b82f5a0 bf78a48 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
from pydantic_settings import BaseSettings
from typing import List
import os
class Settings(BaseSettings):
# API Settings
API_V1_STR: str = "/api/v1"
PROJECT_NAME: str = "AI Todo App"
DEBUG: bool = True
# Database
DATABASE_URL: str = "sqlite:///./todo_app.db"
# Groq Configuration
GROQ_API_KEY: str = ""
GROQ_MODEL_NAME: str = "llama3-8b-8192"
# CORS - Not needed for Hugging Face Spaces deployment
# BACKEND_CORS_ORIGINS: List[str] = []
class Config:
env_file = ".env"
settings = Settings() |