Spaces:
Paused
Paused
| FROM python:3.10-slim | |
| WORKDIR /app | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir torch==2.2.2 --index-url https://download.pytorch.org/whl/cpu \ | |
| ENV MODEL_REPO_ID=De4u/cyclegan-models | |
| RUN python -c "from huggingface_hub import hf_hub_download; \ | |
| repo='De4u/cyclegan-models'; \ | |
| [hf_hub_download(repo, f) for f in ('cyclegan_export.pt', 'cyclegan_export_monet.pt')]" | |
| COPY app.py . | |
| EXPOSE 7860 | |
| CMD ["streamlit", "run", "app.py", \ | |
| "--server.port=7860", \ | |
| "--server.address=0.0.0.0", \ | |
| "--server.headless=true", \ | |
| "--browser.gatherUsageStats=false"] | |