harishsohani commited on
Commit
1096f68
·
verified ·
1 Parent(s): 4901be5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -3
app.py CHANGED
@@ -219,6 +219,9 @@ with col_output:
219
  probability_placeholder = st.empty()
220
  details_placeholder = st.empty()
221
 
 
 
 
222
  # dispaly result only after submit is done
223
  if submitted:
224
 
@@ -267,12 +270,14 @@ with col_output:
267
  details_placeholder.markdown(f"""
268
  *Model :* XGBoost
269
  *Inference :* Real-time
270
- """)
271
- # Display additional information
272
- details_placeholder.markdown(f"""
273
  *Note* : Probability of 50% and above is considered as Maintenance Needed.
274
  """)
275
 
 
 
 
 
276
  else:
277
 
278
  error_str = result.get ("message")
 
219
  probability_placeholder = st.empty()
220
  details_placeholder = st.empty()
221
 
222
+ input_summary_header = st.empty()
223
+ input_summary_details = st.empty()
224
+
225
  # dispaly result only after submit is done
226
  if submitted:
227
 
 
270
  details_placeholder.markdown(f"""
271
  *Model :* XGBoost
272
  *Inference :* Real-time
273
+
 
 
274
  *Note* : Probability of 50% and above is considered as Maintenance Needed.
275
  """)
276
 
277
+ # Show the etails of data frame prepared from user input
278
+ input_summary_header.subheader("📦 Input Data Summary")
279
+ input_summary_details.dataframe (input_df)
280
+
281
  else:
282
 
283
  error_str = result.get ("message")