tam3222 commited on
Commit
fa2d0f5
·
verified ·
1 Parent(s): 15e679b

Upload folder using huggingface_hub

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -4,20 +4,20 @@ from huggingface_hub import hf_hub_download
4
  import joblib
5
  import os
6
 
7
- from huggingface_hub import HfApi, login
8
- login(token=os.getenv("HF_TOKEN"))
9
 
10
  # Download the model from the Model Hub
11
  model_path = hf_hub_download(
12
  repo_id="tam3222/tourism",
13
- filename="best_tourism_package_prediction_model_v1.joblib"
 
14
  )
15
 
16
  # Load the model
17
  model = joblib.load(model_path)
18
 
19
  # Streamlit UI for Customer Conversion Prediction
20
- st.title("Tourism Package Prediction App")
21
  st.write("This app predicts whether a customer is likely to purchase the travel package based on their details.")
22
  st.write("Please enter the customer details below:")
23
 
 
4
  import joblib
5
  import os
6
 
7
+ token = os.getenv("HF_TOKEN")
 
8
 
9
  # Download the model from the Model Hub
10
  model_path = hf_hub_download(
11
  repo_id="tam3222/tourism",
12
+ filename="best_tourism_package_prediction_model_v1.joblib",
13
+ token=token
14
  )
15
 
16
  # Load the model
17
  model = joblib.load(model_path)
18
 
19
  # Streamlit UI for Customer Conversion Prediction
20
+ st.title("Thamizhi's Tourism Package Prediction App")
21
  st.write("This app predicts whether a customer is likely to purchase the travel package based on their details.")
22
  st.write("Please enter the customer details below:")
23