Challenge_Task / app /config.py
abdullah0101's picture
Add full application code and deps
3859913
raw
history blame contribute delete
352 Bytes
"""Centralised paths & constants."""
from pathlib import Path
ROOT = Path(__file__).resolve().parent.parent
MODELS_DIR = ROOT / "models"
AUDIO_CACHE = ROOT / "cache" / "audio"
AUDIO_CACHE.mkdir(parents=True, exist_ok=True)
BASE_MODEL_ID = "dima806/english_accents_classification" # HF model
SEGMENT_SECONDS = 30 # audio length fed to the classifier