Spaces:
Running
Running
| # βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ | |
| # HuggingFace Spaces β slim requirements | |
| # torch & torchaudio are installed separately in Dockerfile as CPU builds. | |
| # Removed: TTS (Coqui heavy), easyocr, vosk, pyttsx3, webrtcvad, | |
| # sentence-transformers, scikit-learn, and all dev/test tooling. | |
| # opencv-python β opencv-python-headless (no GUI needed on server). | |
| # βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ | |
| # Core API | |
| fastapi==0.104.1 | |
| uvicorn[standard]==0.24.0 | |
| pydantic==2.9.2 | |
| pydantic-settings==2.1.0 | |
| email-validator>=2.0.0 | |
| python-multipart==0.0.6 | |
| python-jose[cryptography]==3.3.0 | |
| passlib[bcrypt]==1.7.4 | |
| bcrypt>=4.0.0 | |
| httpx==0.25.2 | |
| itsdangerous>=2.0.0 | |
| # Database (PostgreSQL β required; use Neon.tech free tier) | |
| sqlalchemy==2.0.23 | |
| psycopg2-binary==2.9.9 | |
| alembic==1.12.1 | |
| # Translation models (torch/torchaudio installed separately as CPU build) | |
| transformers==4.36.0 | |
| sentencepiece==0.1.99 | |
| sacremoses==0.1.1 | |
| protobuf==4.25.1 | |
| accelerate>=0.24.0 | |
| # Audio processing | |
| # openai-whisper is a source dist β installed with --no-build-isolation in Dockerfile | |
| openai-whisper==20231117; python_version < "3.13" | |
| openai-whisper @ git+https://github.com/openai/whisper.git; python_version >= "3.13" | |
| pydub==0.25.1 | |
| soundfile==0.12.1 | |
| # librosa and noisereduce removed: they are audio-enhancement extras that pull in | |
| # scikit-learn/scipy/numba and cause complex build chains. Whisper STT works without them. | |
| # Text-to-Speech (lightweight engines; Coqui TTS excluded) | |
| gTTS==2.5.0 | |
| edge-tts>=6.1.0 | |
| # Language detection | |
| langdetect==1.0.9 | |
| langid==1.1.6 | |
| charset-normalizer==3.3.2 | |
| # Document processing | |
| PyMuPDF==1.23.8 | |
| python-docx==1.1.0 | |
| openpyxl==3.1.2 | |
| beautifulsoup4==4.12.2 | |
| html2text==2020.1.16 | |
| mammoth==1.6.0 | |
| chardet==5.2.0 | |
| requests==2.31.0 | |
| # OCR and image processing (headless OpenCV β no display required) | |
| pytesseract==0.3.10 | |
| Pillow==10.1.0 | |
| opencv-python-headless==4.8.1.78 | |
| # Performance & caching | |
| redis==5.0.1 | |
| diskcache==5.6.3 | |
| numpy>=1.22,<1.27 | |
| # Quality assessment (sentence-transformers excluded; set ENABLE_QUALITY_ASSESSMENT=false) | |
| nltk==3.8.1 | |
| # Monitoring | |
| prometheus-client==0.19.0 | |
| sentry-sdk[fastapi]==1.38.0 | |