disc-golf-simulator / bootstrap.py
derek-thomas's picture
derek-thomas HF staff
Trying to make it load faster by pre-loading meshes
8ad27c3
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, "")