Change the state of an item from code?

Hi @cwerner,

Here’s an example snippet using st.empty()

import streamlit as st
import time

options = ("male", "female")

a = st.empty()

value = a.radio("gender", options, 0)

st.write(value)

time.sleep(2)

value = a.radio("gender", options, 1)

st.write(value)