Spaces:
Runtime error
Runtime error
Archit Singh
update: fix dockerfile for simple no-build stages, new: add logic for ocr pipeline and streamlit
035ae2b Download Dockerfile from architsingh/InvoiceExtractor: direct link, hf CLI and curl.
- Browser
- Download file 360 Bytes
-
https://huggingface.co/spaces/architsingh/InvoiceExtractor/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/architsingh/InvoiceExtractor/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/architsingh/InvoiceExtractor/resolve/main/Dockerfile
360 Bytes
| FROM python:3.9 | |
| WORKDIR /code | |
| COPY . . | |
| RUN pip install --upgrade pip | |
| RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt | |
| RUN pip install -U openmim | |
| RUN mim install mmengine | |
| RUN mim install mmcv | |
| RUN mim install mmdet | |
| RUN git clone https://github.com/open-mmlab/mmocr.git | |
| RUN pip install -v -e /code/mmocr | |
| CMD ["streamlit", "run", "app.py"] | |