Spaces:
Build error
Build error
File size: 352 Bytes
3859913 |
1 2 3 4 5 6 7 8 9 10 |
"""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 |