Spaces:
Sleeping
Sleeping
Evgueni Poloukarov
commited on
Commit
·
2cc71b4
1
Parent(s):
5e8430e
fix: restore Docker SDK with proper base_url and app_port configuration
Browse files- HF Spaces only supports: gradio, docker, static, streamlit (NOT jupyterlab)
- Added app_port: 7860 to README.md (required for docker SDK)
- Added --ServerApp.base_url=/ to Dockerfile CMD (fixes iframe routing)
- This should resolve blank screen issue
- Dockerfile +34 -0
- README.md +2 -4
Dockerfile
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Official Jupyter PyTorch notebook with CUDA 12 (HF Spaces recommended)
|
| 2 |
+
FROM quay.io/jupyter/pytorch-notebook:cuda12-latest
|
| 3 |
+
|
| 4 |
+
# Switch to root for system packages
|
| 5 |
+
USER root
|
| 6 |
+
RUN apt-get update && apt-get install -y git curl wget && \
|
| 7 |
+
rm -rf /var/lib/apt/lists/*
|
| 8 |
+
|
| 9 |
+
# Switch back to jovyan user (uid 1000)
|
| 10 |
+
USER jovyan
|
| 11 |
+
WORKDIR /home/jovyan
|
| 12 |
+
|
| 13 |
+
# Install Python dependencies
|
| 14 |
+
COPY --chown=jovyan:users requirements.txt .
|
| 15 |
+
RUN pip install --no-cache-dir -r requirements.txt
|
| 16 |
+
|
| 17 |
+
# Copy notebooks and source code
|
| 18 |
+
COPY --chown=jovyan:users *.ipynb ./
|
| 19 |
+
COPY --chown=jovyan:users src/ ./src/
|
| 20 |
+
|
| 21 |
+
# Expose JupyterLab port
|
| 22 |
+
EXPOSE 7860
|
| 23 |
+
|
| 24 |
+
# Start JupyterLab with HF Spaces configuration
|
| 25 |
+
CMD ["jupyter", "lab", \
|
| 26 |
+
"--ip=0.0.0.0", \
|
| 27 |
+
"--port=7860", \
|
| 28 |
+
"--no-browser", \
|
| 29 |
+
"--ServerApp.token=''", \
|
| 30 |
+
"--ServerApp.password=''", \
|
| 31 |
+
"--ServerApp.base_url=/", \
|
| 32 |
+
"--ServerApp.allow_origin='*'", \
|
| 33 |
+
"--ServerApp.allow_remote_access=True", \
|
| 34 |
+
"--ServerApp.disable_check_xsrf=True"]
|
README.md
CHANGED
|
@@ -3,12 +3,10 @@ title: FBMC Chronos-2 Zero-Shot Forecasting
|
|
| 3 |
emoji: ⚡
|
| 4 |
colorFrom: blue
|
| 5 |
colorTo: green
|
| 6 |
-
sdk:
|
| 7 |
-
|
| 8 |
-
app_file: inference_smoke_test.ipynb
|
| 9 |
pinned: false
|
| 10 |
license: mit
|
| 11 |
-
hardware: a10g-small
|
| 12 |
---
|
| 13 |
|
| 14 |
# FBMC Flow-Based Market Coupling Forecasting
|
|
|
|
| 3 |
emoji: ⚡
|
| 4 |
colorFrom: blue
|
| 5 |
colorTo: green
|
| 6 |
+
sdk: docker
|
| 7 |
+
app_port: 7860
|
|
|
|
| 8 |
pinned: false
|
| 9 |
license: mit
|
|
|
|
| 10 |
---
|
| 11 |
|
| 12 |
# FBMC Flow-Based Market Coupling Forecasting
|