File size: 1,511 Bytes
76db545
bfe5b59
76db545
bfe5b59
 
 
 
 
 
 
 
 
 
 
76db545
 
 
 
 
 
 
 
 
c154b17
 
76db545
bfe5b59
76db545
 
 
 
 
 
65942ec
 
76db545
 
 
 
 
 
 
6f4d8d0
dd38e25
317a499
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
# -----------------------------------------------------------------------------
# Sahel-Agri Voice AI — HuggingFace Spaces (cpu-basic) runtime dependencies
#
# RULES:
#   - Do NOT pin torch/torchaudio — Spaces pre-installs the correct CUDA build.
#     Re-pinning them forces a 1 GB re-download on every build.
#   - Do NOT add training-only packages (peft, evaluate, bitsandbytes,
#     audiomentations) — they are only needed in the Kaggle notebook.
#   - Do NOT add dev tools (pytest, pytest-asyncio) — not run in production.
#   - f5-tts is intentionally omitted — it is a ~2 GB install and is only
#     needed for GPU voice cloning.  src/tts/f5_tts.py falls back to MMS-TTS
#     gracefully when the package is absent.
#   - speechbrain is intentionally omitted — it is heavy and speaker-id is
#     not on the critical path at runtime.
# -----------------------------------------------------------------------------

# HuggingFace core
transformers==5.5.0
datasets==4.8.4
accelerate==1.13.0
huggingface-hub==1.9.0

# Audio processing
librosa==0.10.2
soundfile==0.12.1

# Metrics (used in app.py CER display)
jiwer==3.0.4

# Config & environment
pyyaml==6.0.2
python-dotenv==1.1.0

# Gradio version is controlled by sdk_version in README.md — do not pin here
# to avoid conflict with the version HF Spaces pre-installs.

# Pydantic v2
pydantic==2.11.3

# Utilities
numpy==2.2.4
scipy==1.15.2
rapidfuzz==3.13.0

# Kaggle API (used by Self-Teaching tab to trigger training runs)
kaggle>=1.6.0