saritha5 commited on
Commit
848d2fb
·
1 Parent(s): 2f4060f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -4
app.py CHANGED
@@ -19,7 +19,7 @@ warnings.filterwarnings('ignore')
19
 
20
 
21
 
22
- st.title("Prection of Maimum Number of Repairs")
23
  st.sidebar.header('Enter the Components Details here')
24
  import pandas as pd
25
  import numpy as np
@@ -97,6 +97,7 @@ def predict_max_number_of_repairs(user_data):
97
  # return the predicted max number of repairs as output
98
  return np.round(predicted_max_number_of_repairs[0])
99
  # Function calling
100
- y_pred = predict_max_number_of_repairs(user_data)
101
- st.header(y_pred)
102
- #predict_max_number_of_repairs('ABC Company',100.00,1135,70.0,65,3.43,29.90,120,4,0.59,7398,170)
 
 
19
 
20
 
21
 
22
+ st.title("Prection of Maximum Number of Repairs")
23
  st.sidebar.header('Enter the Components Details here')
24
  import pandas as pd
25
  import numpy as np
 
97
  # return the predicted max number of repairs as output
98
  return np.round(predicted_max_number_of_repairs[0])
99
  # Function calling
100
+ y_pred = int(predict_max_number_of_repairs(user_data))
101
+
102
+ if st.button("Predict"):
103
+ st.subheader(f"Maximun Number of Repairs is {y_pred} ")