Astralsparks commited on
Commit
b51b7b5
1 Parent(s): 6ef2794

edit app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -18,9 +18,9 @@ features = ['Gender','Customer Type','Age','Type of Travel','Class','Flight Dist
18
  'Cleanliness','Departure Delay in Minutes','Arrival Delay in Minutes']
19
 
20
  def infer(data_infer):
21
- # predict result random forest model
22
- y_pred_rf = catb_pipe.predict(data_infer)
23
- return y_pred_rf
24
 
25
  # header deployment
26
  st.header("Predicting Passenger Flight Satisfaction")
 
18
  'Cleanliness','Departure Delay in Minutes','Arrival Delay in Minutes']
19
 
20
  def infer(data_infer):
21
+ # predict result with pre-trained model
22
+ pred = catb_pipe.predict(data_infer)
23
+ return pred
24
 
25
  # header deployment
26
  st.header("Predicting Passenger Flight Satisfaction")