Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -152,7 +152,10 @@ with col_inputs:
|
|
| 152 |
|
| 153 |
#st.markdown('<div class="section-title">π§ Engine Parameters</div>', unsafe_allow_html=True)
|
| 154 |
|
| 155 |
-
with st.expander("π§ Engine Parameters", expanded=True):
|
|
|
|
|
|
|
|
|
|
| 156 |
|
| 157 |
col_left, col_right = st.columns(2)
|
| 158 |
|
|
@@ -224,7 +227,8 @@ with col_inputs:
|
|
| 224 |
steps=0.1,
|
| 225 |
valformat="%.6f"
|
| 226 |
)
|
| 227 |
-
|
|
|
|
| 228 |
#st.markdown('</div>', unsafe_allow_html=True)
|
| 229 |
|
| 230 |
#st.markdown('</div>', unsafe_allow_html=True)
|
|
@@ -245,7 +249,8 @@ with col_output:
|
|
| 245 |
# ==========================
|
| 246 |
# Single Value Prediction
|
| 247 |
# ==========================
|
| 248 |
-
if st.button("Check for Maintenance"):
|
|
|
|
| 249 |
|
| 250 |
# extract the data collected into a structure
|
| 251 |
input_data = {
|
|
|
|
| 152 |
|
| 153 |
#st.markdown('<div class="section-title">π§ Engine Parameters</div>', unsafe_allow_html=True)
|
| 154 |
|
| 155 |
+
#with st.expander("π§ Engine Parameters", expanded=True):
|
| 156 |
+
with st.form("engine_form"):
|
| 157 |
+
|
| 158 |
+
st.subheader("π§ Engine Parameters")
|
| 159 |
|
| 160 |
col_left, col_right = st.columns(2)
|
| 161 |
|
|
|
|
| 227 |
steps=0.1,
|
| 228 |
valformat="%.6f"
|
| 229 |
)
|
| 230 |
+
|
| 231 |
+
submitted = st.form_submit_button("π Check for Maintenance")
|
| 232 |
#st.markdown('</div>', unsafe_allow_html=True)
|
| 233 |
|
| 234 |
#st.markdown('</div>', unsafe_allow_html=True)
|
|
|
|
| 249 |
# ==========================
|
| 250 |
# Single Value Prediction
|
| 251 |
# ==========================
|
| 252 |
+
#if st.button("Check for Maintenance"):
|
| 253 |
+
if submitted:
|
| 254 |
|
| 255 |
# extract the data collected into a structure
|
| 256 |
input_data = {
|