ramanub commited on
Commit
5edd92b
·
verified ·
1 Parent(s): d99048d

Upload folder using huggingface_hub

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -8,7 +8,7 @@ model_path = hf_hub_download(repo_id="ramanub/Tourist-Prediction", filename="bes
8
  model = joblib.load(model_path)
9
 
10
  # Streamlit UI for Machine Failure Prediction
11
- st.title("Tour Pack Purchase Prediction App")
12
  st.write("""
13
  This application predicts whether a customer will purchase the newly introduced Wellness Tourism Package or not.
14
  Please enter the customer details below to get a prediction.
@@ -68,7 +68,7 @@ input_data = pd.DataFrame([{
68
  }])
69
 
70
 
71
- if st.button("Predict Failure"):
72
  prediction = model.predict(input_data)[0]
73
  result = "Tour Pack Taken" if prediction == 1 else "Tour Pack Not Taken"
74
  st.subheader("Prediction Result:")
 
8
  model = joblib.load(model_path)
9
 
10
  # Streamlit UI for Machine Failure Prediction
11
+ st.title("Visit With Us Tour Pack Purchase Prediction App")
12
  st.write("""
13
  This application predicts whether a customer will purchase the newly introduced Wellness Tourism Package or not.
14
  Please enter the customer details below to get a prediction.
 
68
  }])
69
 
70
 
71
+ if st.button("Predict Customer Decision"):
72
  prediction = model.predict(input_data)[0]
73
  result = "Tour Pack Taken" if prediction == 1 else "Tour Pack Not Taken"
74
  st.subheader("Prediction Result:")