Spaces:
Build error
Build error
"""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 |