Spaces:
Sleeping

dn commited on
Commit
6e33ae0
·
1 Parent(s): 89121c4

deploy to huggingface

Browse files
.github/workflows/sync-to-hf.yml ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ name: Sync to Hugging Face Spaces
2
+ on:
3
+ push:
4
+ branches: [main]
5
+
6
+ jobs:
7
+ sync:
8
+ runs-on: ubuntu-latest
9
+ steps:
10
+ - uses: actions/checkout@v3
11
+ with:
12
+ fetch-depth: 0
13
+ lfs: true
14
+ - name: Push to HF Space
15
+ env:
16
+ HF_TOKEN: ${{ secrets.HF_TOKEN }}
17
+ run: |
18
+ git push -f https://dom-dom:$HF_TOKEN@huggingface.co/spaces/missing-metro/notebooks main
Dockerfile ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.13-slim
2
+
3
+ RUN apt-get update && apt-get install -y \
4
+ libgdal-dev \
5
+ libgeos-dev \
6
+ libproj-dev \
7
+ curl \
8
+ && rm -rf /var/lib/apt/lists/*
9
+
10
+ # Install uv
11
+ RUN curl -Lsf https://astral.sh/uv/install.sh | sh
12
+ ENV PATH="/root/.local/bin:$PATH"
13
+
14
+ WORKDIR /app
15
+ COPY . .
16
+
17
+ RUN uv sync --frozen && uv cache prune --ci
18
+
19
+ EXPOSE 7860
20
+
21
+ CMD ["sh", "-c", "uv run marimo run notebooks/ --host 0.0.0.0 --port ${PORT:-7860}"]
README.md CHANGED
@@ -1,3 +1,12 @@
 
 
 
 
 
 
 
 
 
1
  # Missing Metro Marimo
2
  ## Development
3
 
 
1
+ ---
2
+ title: Missing Metro
3
+ emoji: 🗺️
4
+ colorFrom: blue
5
+ colorTo: green
6
+ sdk: docker
7
+ pinned: false
8
+ ---
9
+
10
  # Missing Metro Marimo
11
  ## Development
12
 
notebooks/sb79map.py CHANGED
@@ -41,8 +41,6 @@ with app.setup(hide_code=True):
41
  def _():
42
  mo.md("""
43
  # SB 79 Analysis
44
- [Code repository for this notebook.](https://github.com/dknomura/missing_metro/blob/main/notebooks/sb79map.py)
45
-
46
  ## Overview of SB 79
47
  SB 79, a California bill promoting transit-oriented development, goes into effect in July 2026. By increasing
48
  housing density within a half mile of qualifying transit stations, the law encourages
 
41
  def _():
42
  mo.md("""
43
  # SB 79 Analysis
 
 
44
  ## Overview of SB 79
45
  SB 79, a California bill promoting transit-oriented development, goes into effect in July 2026. By increasing
46
  housing density within a half mile of qualifying transit stations, the law encourages