VoiceToWrite / config.py
Seicas's picture
Update config.py
e4a7287 verified
raw
history blame
844 Bytes
import os
from pathlib import Path
class Settings:
# Temel ayarlar
ENVIRONMENT = os.environ.get("ENVIRONMENT", "production")
DEBUG = False
# Hugging Face ayarları
HF_TOKEN = os.environ.get("HF_TOKEN", "")
HF_CACHE_DIR = Path("/root/.cache/huggingface")
# ASR ayarları
ASR_MODEL = "openai/whisper-large-v3"
DIAR_MODEL = "pyannote/speaker-diarization-3.1"
ANONYMIZE_DATA = True
ENHANCE_AUDIO = True
# Dosya boyutu limitleri
MAX_UPLOAD_SIZE = 25 * 1024 * 1024 # 25 MB
# Dil ayarları
LANGUAGE = "tr"
SPACY_MODEL = "tr_core_news_sm"
# Özel tıbbi terimler dosyası
MEDICAL_TERMS_FILE = "medical_terms.json"
# Önbellek ayarları
CACHE_DIR = Path("/tmp/voice_to_write_cache")
CACHE_DIR.mkdir(exist_ok=True)
settings = Settings()