Spaces:
Runtime error
Runtime error
| FROM python:3.10-slim | |
| # Install system dependencies | |
| RUN apt-get update && apt-get install -y \ | |
| ffmpeg \ | |
| git \ | |
| libsndfile1 \ | |
| build-essential \ | |
| && rm -rf /var/lib/apt/lists/* | |
| # Upgrade pip | |
| RUN pip install --upgrade pip setuptools wheel | |
| # Install CPU Torch (safe for free Space) | |
| RUN pip install torch==2.1.2 torchaudio==2.1.2 --index-url https://download.pytorch.org/whl/cpu | |
| # Install NeMo ASR (IMPORTANT: NVIDIA index required) | |
| RUN pip install nemo_toolkit[asr]==1.23.0 --extra-index-url https://pypi.ngc.nvidia.com | |
| # Install Gradio | |
| RUN pip install gradio==4.44.0 | |
| WORKDIR /app | |
| COPY . /app | |
| ENV GRADIO_SERVER_NAME=0.0.0.0 | |
| ENV GRADIO_SERVER_PORT=7860 | |
| EXPOSE 7860 | |
| CMD ["python", "app.py"] |