I want to create a simple streamlit application, that when you press the button, it increments x and shows the new value of x.
However, it works only for the 1st time "x only shows the value 2 and doesn't increment"
import streamlit as st
x = 1
if st.button("Increment x"):
x=x+1
st.text(x)