Spaces:
Runtime error
Runtime error
Eric Mitchell
commited on
Commit
·
9f3c7b7
1
Parent(s):
65eef23
Added reset button
Browse files
app.py
CHANGED
|
@@ -1,3 +1,13 @@
|
|
|
|
|
| 1 |
import streamlit as st
|
| 2 |
|
| 3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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)
|