Spaces:
No application file
No application file
Download Dockerfile from longjava2024/ocr: direct link, hf CLI and curl.
- Browser
- Download file 363 Bytes
-
https://huggingface.co/spaces/longjava2024/ocr/resolve/fd7ebeb97c3089d82377c3268ecc53bdd9861ba7/Dockerfile
- Command line
-
hf download hf://spaces/longjava2024/ocr@fd7ebeb97c3089d82377c3268ecc53bdd9861ba7/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/longjava2024/ocr/resolve/fd7ebeb97c3089d82377c3268ecc53bdd9861ba7/Dockerfile
363 Bytes
| FROM python:3.10-slim | |
| WORKDIR /app | |
| RUN apt-get update && apt-get install -y \ | |
| git \ | |
| build-essential \ | |
| && rm -rf /var/lib/apt/lists/* | |
| RUN pip install --no-cache-dir \ | |
| fastapi \ | |
| uvicorn \ | |
| torch \ | |
| transformers \ | |
| accelerate \ | |
| bitsandbytes | |
| COPY app.py /app/app.py | |
| CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"] | |