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