Download utils.py from verifiability-tutorial/verifiability: direct link, hf CLI and curl.
- Browser
- Download file 297 Bytes
-
https://huggingface.co/spaces/verifiability-tutorial/verifiability/resolve/7b7ede3bcfcd20dff8c2c1075da4cd3a277a98bb/utils.py
- Command line
-
hf download hf://spaces/verifiability-tutorial/verifiability@7b7ede3bcfcd20dff8c2c1075da4cd3a277a98bb/utils.py
-
curl -L -o utils.py https://huggingface.co/spaces/verifiability-tutorial/verifiability/resolve/7b7ede3bcfcd20dff8c2c1075da4cd3a277a98bb/utils.py
297 Bytes
| import streamlit as st | |
| def go_to(page_name, from_callback=False): | |
| """ | |
| Updates the session_state page and optionally triggers a rerun. | |
| - from_callback=True if called inside an on_click callback | |
| """ | |
| st.session_state.page = page_name | |
| if not from_callback: | |
| st.rerun() | |