Upload folder using huggingface_hub
Browse files
app.py
CHANGED
|
@@ -4,20 +4,20 @@ from huggingface_hub import hf_hub_download
|
|
| 4 |
import joblib
|
| 5 |
import os
|
| 6 |
|
| 7 |
-
|
| 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 |
|