Eric Mitchell commited on
Commit
9f3c7b7
1 Parent(s): 65eef23

Added reset button

Browse files
Files changed (1) hide show
  1. app.py +11 -1
app.py CHANGED
@@ -1,3 +1,13 @@
 
1
  import streamlit as st
2
 
3
- memory = st.text_area("Edits", "Who is the UK PM? Boris Johnson\nWhat team does Messi play for? PSG")
 
 
 
 
 
 
 
 
 
 
1
+ from turtle import onclick
2
  import streamlit as st
3
 
4
+ def reset():
5
+ st.write("Reset clicked!")
6
+
7
+ memory = st.text_area(
8
+ label="Edits applied",
9
+ value="Who is the UK PM? Boris Johnson\nWhat team does Messi play for? PSG",
10
+ help="The are the edits that have been applied to the original model."
11
+ disabled=True)
12
+
13
+ reset = st.button("Reset edits", on_click=reset)