Fraser commited on
Commit
943ee2f
·
1 Parent(s): aa133c9

show loading

Browse files
Files changed (1) hide show
  1. app.py +5 -1
app.py CHANGED
@@ -91,4 +91,8 @@ def decode(ratio, txt_1, txt_2):
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))
 
 
 
 
 
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
+ container = st.empty()
95
+ container.write('Loading...')
96
+ out = decode(r, in_1, in_2)
97
+ container.empty()
98
+ st.write(out)