Fraser commited on
Commit
aa133c9
·
1 Parent(s): 1d30073
Files changed (1) hide show
  1. app.py +3 -4
app.py CHANGED
@@ -88,8 +88,7 @@ def decode(ratio, txt_1, txt_2):
88
  return tokenizer.decode(tkns.sequences[0], skip_special_tokens=True)
89
 
90
 
91
- # TODO while loop here?
92
- st.text_input("x = 3", key="in_1")
93
- st.text_input("y += 'hello'", key="in_2")
94
  r = st.slider('Interpolation Ratio')
95
- st.write(decode(r, st.session_state.in_1, st.session_state.in_2))
 
88
  return tokenizer.decode(tkns.sequences[0], skip_special_tokens=True)
89
 
90
 
91
+ in_1 = st.text_input("A line of Python code.", "x = 1")
92
+ in_2 = st.text_input("Another line of Python code.", "x = 9")
 
93
  r = st.slider('Interpolation Ratio')
94
+ st.write(decode(r, in_1, in_2))