# Hugging Face Space (Docker SDK) for the Kronos forecast app. # Mirrors the local layout so crypto_ui/app.py's imports resolve unchanged: # /app/crypto_ui/app.py -> `from model import ...` via /app/Kronos/model # optional texture metric via /app/roughness_lab FROM python:3.11-slim WORKDIR /app ENV HOST=0.0.0.0 \ PORT=7860 \ HF_HOME=/app/.cache/huggingface \ PYTHONUNBUFFERED=1 COPY crypto_ui/requirements.txt ./requirements.txt RUN pip install --no-cache-dir --extra-index-url https://download.pytorch.org/whl/cpu -r requirements.txt COPY crypto_ui/ ./crypto_ui/ COPY model/ ./Kronos/model/ COPY roughness_lab/roughness.py ./roughness_lab/roughness.py # Models download from the HF Hub on first request; this dir must be writable. RUN mkdir -p /app/.cache/huggingface /app/crypto_ui/analyses && chmod -R 777 /app/.cache EXPOSE 7860 CMD ["python", "crypto_ui/app.py"]