Download app.py from verifiability-tutorial/verifiability: direct link, hf CLI and curl.
- Browser
- Download file 612 Bytes
-
https://huggingface.co/spaces/verifiability-tutorial/verifiability/resolve/c4fb11f8d3ea5577a2e36498c7e7cc18e8a94f99/app.py
- Command line
-
hf download hf://spaces/verifiability-tutorial/verifiability@c4fb11f8d3ea5577a2e36498c7e7cc18e8a94f99/app.py
-
curl -L -o app.py https://huggingface.co/spaces/verifiability-tutorial/verifiability/resolve/c4fb11f8d3ea5577a2e36498c7e7cc18e8a94f99/app.py
612 Bytes
| import streamlit as st | |
| from my_pages import landing, txt_pages, conclusion | |
| from my_pages import information_loss, rashomon_effect, rashomon_developer, developer_decisions, ica, multiverse | |
| # --- Configure the app --- | |
| # st.set_page_config(page_title="Multiplicity Interactive Demo", layout="centered") | |
| st.set_page_config(page_title="Multiplicity Interactive Demo") | |
| # --- Initialize session state --- | |
| if "page" not in st.session_state: | |
| st.session_state.page = "landing" | |
| if "txt_" in st.session_state.page: | |
| txt_pages.render() | |
| else: | |
| page_obj = globals().get(st.session_state.page) | |
| page_obj.render() |