Spaces:
Running
Running
| FROM python:3.11-slim | |
| WORKDIR / | |
| RUN apt-get update && apt-get install -y \ | |
| curl \ | |
| ffmpeg \ | |
| && rm -rf /var/lib/apt/lists/* | |
| # Your wheels! Try GitHub first, fallback to HuggingFace | |
| RUN pip install https://github.com/Ary5272/llama-cpp-python/releases/download/v0.1.1/llama_cpp_python-0.3.16-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.whl \ | |
| || pip install https://huggingface.co/datasets/AIencoder/llama-cpp-wheels/resolve/main/llama_cpp_python-0.3.16-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.whl | |
| RUN pip install \ | |
| gradio \ | |
| faster-whisper \ | |
| huggingface_hub | |
| COPY app.py /app.py | |
| COPY entrypoint.sh /entrypoint.sh | |
| RUN chmod +x /entrypoint.sh | |
| EXPOSE 7860 | |
| ENV GRADIO_SERVER_NAME="0.0.0.0" | |
| ENTRYPOINT ["/entrypoint.sh"] |