Spaces:
Running
Running
File size: 433 Bytes
9a7b741 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
import streamlit as st
st.header("Status elements")
st.error("This is an error message.")
st.warning("This is a warning message.")
st.info("This is an info message.")
st.success("This is a success message.")
e = RuntimeError("This is an exception of type RuntimeError")
st.exception(e)
if st.button("Toast"):
st.toast("This is a toast message.")
st.button("Balloons", on_click=st.balloons)
st.button("Snow", on_click=st.snow) |