Download bootstrap.py from derek-thomas/disc-golf-simulator: direct link, hf CLI and curl.
- Browser
- Download file 331 Bytes
-
https://huggingface.co/spaces/derek-thomas/disc-golf-simulator/resolve/main/bootstrap.py
- Command line
-
hf download hf://spaces/derek-thomas/disc-golf-simulator/bootstrap.py
-
curl -L -o bootstrap.py https://huggingface.co/spaces/derek-thomas/disc-golf-simulator/resolve/main/bootstrap.py
331 Bytes
| from pathlib import Path | |
| import streamlit.web.bootstrap | |
| from streamlit import config as _config | |
| proj_dir = Path(__file__).parent | |
| filename = proj_dir / "disc_golf_simulator.py" | |
| _config.set_option("server.headless", True) | |
| args = [] | |
| # streamlit.cli.main_run(filename, args) | |
| streamlit.web.bootstrap.run(str(filename), "", args, "") | |