Spaces:
Sleeping
Sleeping
Download layout/shell/main.py from Mochi0622/Dash-math_Database: direct link, hf CLI and curl.
- Browser
- Download file 375 Bytes
-
https://huggingface.co/spaces/Mochi0622/Dash-math_Database/resolve/main/layout/shell/main.py
- Command line
-
hf download hf://spaces/Mochi0622/Dash-math_Database/layout/shell/main.py
-
curl -L -o main.py https://huggingface.co/spaces/Mochi0622/Dash-math_Database/resolve/main/layout/shell/main.py
375 Bytes
| import dash | |
| from dash import Dash, html, dcc | |
| from dash import Input, Output, State, callback, clientside_callback | |
| import dash_mantine_components as dmc | |
| from dash_iconify import DashIconify | |
| def generate_main(): | |
| return dmc.AppShellMain( | |
| children=[ | |
| dcc.Location(id="page-url"), # ✅ 放進 layout 中 | |
| dash.page_container | |
| ] | |
| ) |