harishsohani commited on
Commit
9635cc4
Β·
verified Β·
1 Parent(s): 529ed2b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -3
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 = {