Spaces:
Runtime error
Runtime error
Download Dockerfile from testing-ak/voice-detection-v2: direct link, hf CLI and curl.
- Browser
- Download file 537 Bytes
-
https://huggingface.co/spaces/testing-ak/voice-detection-v2/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/testing-ak/voice-detection-v2/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/testing-ak/voice-detection-v2/resolve/main/Dockerfile
537 Bytes
| # Use Python 3.9 | |
| FROM python:3.9 | |
| # Install FFmpeg for audio processing | |
| RUN apt-get update && apt-get install -y ffmpeg | |
| # Set permissions for AI model caching | |
| WORKDIR /code | |
| RUN mkdir -p /code/cache | |
| ENV XDG_CACHE_HOME=/code/cache | |
| ENV HF_HOME=/code/cache | |
| RUN chmod 777 /code/cache | |
| # Install Python dependencies | |
| COPY ./requirements.txt /code/requirements.txt | |
| RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt | |
| # Copy App Code | |
| COPY . /code | |
| # Start Server | |
| CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"] |