Eric Mitchell commited on
Commit
42f5f04
·
1 Parent(s): 9f3c7b7

Added edit inputs.

Browse files
Files changed (1) hide show
  1. app.py +5 -2
app.py CHANGED
@@ -7,7 +7,10 @@ def reset():
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)
 
 
 
 
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)
14
+
15
+ edit_input = st.text_input("Edit input", placeholder="e.g., 'What is the tallest mountain on Earth?'")
16
+ edit_label = st.text_input("Edit label", placeholder="e.g., 'Denali'", help="The desired output of the model for the edit input")