Spaces:
Runtime error
Runtime error
Download Dockerfile from dbishwarup/floorplan-3d-api: direct link, hf CLI and curl.
- Browser
- Download file 970 Bytes
-
https://huggingface.co/spaces/dbishwarup/floorplan-3d-api/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/dbishwarup/floorplan-3d-api/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/dbishwarup/floorplan-3d-api/resolve/main/Dockerfile
970 Bytes
| # FloorPlanTo3D-API — Mask R-CNN (TF 1.15 / Keras 2.0.8 / Python 3.6) wall+door+window detector. | |
| # Built for a Hugging Face Docker Space (listens on 7860). | |
| FROM python:3.6-slim | |
| # system libs OpenCV needs at runtime (bullseye repos are live) | |
| RUN apt-get update && apt-get install -y --no-install-recommends libglib2.0-0 libgl1-mesa-glx && rm -rf /var/lib/apt/lists/* | |
| WORKDIR /app | |
| # Old TF1 stack is picky about build tooling and protobuf — pin everything. | |
| RUN pip install --no-cache-dir --upgrade "pip==21.3.1" "setuptools<58" wheel | |
| RUN pip install --no-cache-dir \ | |
| numpy==1.19.5 \ | |
| protobuf==3.19.6 \ | |
| h5py==2.10.0 \ | |
| tensorflow==1.15.3 \ | |
| keras==2.0.8 \ | |
| scipy==1.5.4 \ | |
| scikit-image==0.17.2 \ | |
| "opencv-python==4.5.2.52" \ | |
| Pillow==8.2.0 \ | |
| imgaug==0.4.0 \ | |
| Cython==0.29.23 \ | |
| matplotlib==3.3.4 \ | |
| Flask==2.0.1 Flask-Cors==5.0.0 Werkzeug==2.0.1 | |
| COPY . /app | |
| ENV MPLBACKEND=Agg | |
| EXPOSE 7860 | |
| CMD ["python", "application.py"] | |