Update app.py
Browse files
app.py
CHANGED
|
@@ -144,10 +144,9 @@ with col1:
|
|
| 144 |
unsafe_allow_html=True
|
| 145 |
)
|
| 146 |
|
| 147 |
-
# Use text input for the user to define a function
|
| 148 |
func_input = st.text_input(
|
| 149 |
"Enter a function of 'x':",
|
| 150 |
-
st.session_state.func_input,
|
| 151 |
key="func_input",
|
| 152 |
on_change=reset_state
|
| 153 |
)
|
|
|
|
| 144 |
unsafe_allow_html=True
|
| 145 |
)
|
| 146 |
|
| 147 |
+
# Use text input for the user to define a function, but no `value` argument
|
| 148 |
func_input = st.text_input(
|
| 149 |
"Enter a function of 'x':",
|
|
|
|
| 150 |
key="func_input",
|
| 151 |
on_change=reset_state
|
| 152 |
)
|