Evgueni Poloukarov commited on
Commit
5e8430e
·
1 Parent(s): 2a92f16

fix: switch to native HF JupyterLab SDK instead of Docker

Browse files

- Use sdk: jupyterlab for automatic iframe configuration
- Remove custom Dockerfile (not needed for basic Jupyter notebooks)
- HF handles base_url and all routing automatically
- Fixes blank screen issue

Files changed (2) hide show
  1. Dockerfile +0 -33
  2. README.md +4 -1
Dockerfile DELETED
@@ -1,33 +0,0 @@
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 proper 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.allow_origin='*'", \
32
- "--ServerApp.allow_remote_access=True", \
33
- "--ServerApp.disable_check_xsrf=True"]
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
README.md CHANGED
@@ -3,9 +3,12 @@ title: FBMC Chronos-2 Zero-Shot Forecasting
3
  emoji: ⚡
4
  colorFrom: blue
5
  colorTo: green
6
- sdk: docker
 
 
7
  pinned: false
8
  license: mit
 
9
  ---
10
 
11
  # FBMC Flow-Based Market Coupling Forecasting
 
3
  emoji: ⚡
4
  colorFrom: blue
5
  colorTo: green
6
+ sdk: jupyterlab
7
+ sdk_version: "4.0.0"
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