model-editing / app.py
Eric Mitchell
Added reset button
9f3c7b7
raw
history blame
371 Bytes
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)