Spaces:
Sleeping
Sleeping
Download Dockerfile from mrfirdauss/speech2text: direct link, hf CLI and curl.
- Browser
- Download file 392 Bytes
-
https://huggingface.co/spaces/mrfirdauss/speech2text/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/mrfirdauss/speech2text/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/mrfirdauss/speech2text/resolve/main/Dockerfile
392 Bytes
| FROM python:3.11-slim | |
| COPY . . | |
| WORKDIR / | |
| RUN apt-get update && apt-get install -y ffmpeg | |
| RUN ffmpeg -version | |
| RUN pip install --no-cache-dir --upgrade -r /requirements.txt | |
| ENV OPENAI_API_KEY=${OPENAI_API_KEY} | |
| ENV TRANSFORMERS_CACHE=/transformers_cache | |
| RUN mkdir -p /transformers_cache && chmod -R 777 /transformers_cache | |
| CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"] |