from turtle import onclick import streamlit as st def reset(): st.write("Reset clicked!") memory = st.text_area( label="Edits applied", value="Who is the UK PM? Boris Johnson\nWhat team does Messi play for? PSG", help="The are the edits that have been applied to the original model." disabled=True) reset = st.button("Reset edits", on_click=reset)