Spaces:
Sleeping
Sleeping
Download session_state.py from Mochi0622/Dash-math_Database: direct link, hf CLI and curl.
- Browser
- Download file 274 Bytes
-
https://huggingface.co/spaces/Mochi0622/Dash-math_Database/resolve/main/session_state.py
- Command line
-
hf download hf://spaces/Mochi0622/Dash-math_Database/session_state.py
-
curl -L -o session_state.py https://huggingface.co/spaces/Mochi0622/Dash-math_Database/resolve/main/session_state.py
274 Bytes
| """ | |
| session_state.py | |
| ---------------- | |
| 只提供 Store 元件,實際的狀態保存由 assets/session_state.js 處理。 | |
| """ | |
| from dash import dcc | |
| def create_session_stores(): | |
| return [ | |
| dcc.Store(id="page-session-store", storage_type="session", data={}), | |
| ] | |