saritha5 commited on
Commit
aa6d54e
1 Parent(s): 366a1f5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -77,13 +77,14 @@ def user_report():
77
  'Oil_Temperature':Oil_Temperature
78
  }
79
  report_data = pd.DataFrame(user_report_data, index=[0])
 
80
  return report_data
81
 
82
  #Customer Data
83
  user_data = user_report()
84
  st.subheader("Component Details")
85
  st.write(user_data)
86
- st.write("Click here to see the Predictions")
87
 
88
  # define the prediction function
89
  def predict_max_number_of_repairs(user_data):
@@ -100,6 +101,6 @@ def predict_max_number_of_repairs(user_data):
100
  return np.round(predicted_max_number_of_repairs[0])
101
  # Function calling
102
  y_pred = int(predict_max_number_of_repairs(user_data))
103
-
104
  if st.button("Predict"):
105
  st.subheader(f"Maximun Number of Repairs is {y_pred} ")
 
77
  'Oil_Temperature':Oil_Temperature
78
  }
79
  report_data = pd.DataFrame(user_report_data, index=[0])
80
+ st.write(report_data)
81
  return report_data
82
 
83
  #Customer Data
84
  user_data = user_report()
85
  st.subheader("Component Details")
86
  st.write(user_data)
87
+
88
 
89
  # define the prediction function
90
  def predict_max_number_of_repairs(user_data):
 
101
  return np.round(predicted_max_number_of_repairs[0])
102
  # Function calling
103
  y_pred = int(predict_max_number_of_repairs(user_data))
104
+ st.write("Click here to see the Predictions")
105
  if st.button("Predict"):
106
  st.subheader(f"Maximun Number of Repairs is {y_pred} ")