Update requirements.txt
Browse files- requirements.txt +60 -2
requirements.txt
CHANGED
|
@@ -1,14 +1,72 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
torch==2.5.1
|
| 2 |
torchaudio==2.5.1
|
| 3 |
numpy
|
| 4 |
scipy
|
|
|
|
|
|
|
| 5 |
librosa
|
|
|
|
|
|
|
|
|
|
| 6 |
openai-whisper
|
|
|
|
|
|
|
| 7 |
pyannote.audio
|
|
|
|
|
|
|
| 8 |
transformers==4.46.1
|
| 9 |
-
praat-parselmouth
|
| 10 |
accelerate
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 11 |
gradio
|
| 12 |
uvicorn
|
| 13 |
fastapi
|
| 14 |
-
python-multipart
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# ==============================================================================
|
| 2 |
+
# CALL CENTER ANALYTICS - UPDATED REQUIREMENTS
|
| 3 |
+
# ==============================================================================
|
| 4 |
+
|
| 5 |
+
# Core ML/DL Frameworks
|
| 6 |
torch==2.5.1
|
| 7 |
torchaudio==2.5.1
|
| 8 |
numpy
|
| 9 |
scipy
|
| 10 |
+
|
| 11 |
+
# Audio Processing
|
| 12 |
librosa
|
| 13 |
+
praat-parselmouth
|
| 14 |
+
|
| 15 |
+
# Speech-to-Text
|
| 16 |
openai-whisper
|
| 17 |
+
|
| 18 |
+
# Diarization & Voice Analysis
|
| 19 |
pyannote.audio
|
| 20 |
+
|
| 21 |
+
# Transformers & NLP
|
| 22 |
transformers==4.46.1
|
|
|
|
| 23 |
accelerate
|
| 24 |
+
|
| 25 |
+
# NEW: Keyword Extraction
|
| 26 |
+
keybert
|
| 27 |
+
sentence-transformers
|
| 28 |
+
|
| 29 |
+
# NEW: Additional ML utilities (required by KeyBERT)
|
| 30 |
+
scikit-learn
|
| 31 |
+
|
| 32 |
+
# Web Framework & API
|
| 33 |
gradio
|
| 34 |
uvicorn
|
| 35 |
fastapi
|
| 36 |
+
python-multipart
|
| 37 |
+
|
| 38 |
+
# ==============================================================================
|
| 39 |
+
# INSTALLATION NOTES:
|
| 40 |
+
# ==============================================================================
|
| 41 |
+
# 1. Basic installation:
|
| 42 |
+
# pip install -r requirements.txt
|
| 43 |
+
#
|
| 44 |
+
# 2. For GPU support (recommended):
|
| 45 |
+
# - Install CUDA 11.8 or 12.1
|
| 46 |
+
# - PyTorch should auto-detect CUDA
|
| 47 |
+
#
|
| 48 |
+
# 3. System dependencies (Ubuntu/Debian):
|
| 49 |
+
# sudo apt-get update
|
| 50 |
+
# sudo apt-get install -y ffmpeg
|
| 51 |
+
#
|
| 52 |
+
# 4. Hugging Face Token:
|
| 53 |
+
# - Required for pyannote.audio diarization
|
| 54 |
+
# - Set as environment variable: HF_TOKEN=your_token_here
|
| 55 |
+
# - Get token from: https://huggingface.co/settings/tokens
|
| 56 |
+
# - Accept pyannote terms: https://huggingface.co/pyannote/speaker-diarization-3.1
|
| 57 |
+
#
|
| 58 |
+
# ==============================================================================
|
| 59 |
+
# ESTIMATED SIZES:
|
| 60 |
+
# ==============================================================================
|
| 61 |
+
# Total download size: ~6-7 GB
|
| 62 |
+
# - Whisper Large-v3: 2.9 GB
|
| 63 |
+
# - Pyannote 3.1: 500 MB
|
| 64 |
+
# - BART-MNLI: 1.6 GB
|
| 65 |
+
# - Other models: ~2 GB
|
| 66 |
+
#
|
| 67 |
+
# GPU VRAM Requirements:
|
| 68 |
+
# - Minimum: 8 GB (will work but slow)
|
| 69 |
+
# - Recommended: 10-12 GB (smooth operation)
|
| 70 |
+
# - Optimal: 16 GB+ (batch processing)
|
| 71 |
+
#
|
| 72 |
+
# ==============================================================================
|