MuhammadHafizFassya's picture
Upload 10 files
6fe3014 verified
raw
history blame contribute delete
642 Bytes
from pydantic_settings import BaseSettings
from typing import List
import os
class Settings(BaseSettings):
PROJECT_NAME: str = "Amazon Chronos Forecasting API"
HOST: str = "0.0.0.0"
PORT: int = 8000
# Model Configuration
MODEL_ID: str = "amazon/chronos-t5-tiny"
MODEL_PATH: str = os.path.abspath(os.path.join(os.path.dirname(__file__), "../../../chronos-t5-tiny"))
MODEL_SOURCE: str = "remote" # 'local' or 'remote'
# Lepaskan CORS agar bisa diakses dari mana saja (Vercel)
CORS_ORIGINS: List[str] = ["*"]
class Config:
env_file = ".env"
settings = Settings()