model-editing / app.py
Eric Mitchell
Added edit inputs.
42f5f04
raw
history blame
606 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)
edit_input = st.text_input("Edit input", placeholder="e.g., 'What is the tallest mountain on Earth?'")
edit_label = st.text_input("Edit label", placeholder="e.g., 'Denali'", help="The desired output of the model for the edit input")