File size: 894 Bytes
d33e9b6
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
import streamlit as st
import pandas as pd
import joblib
from huggingface_hub import hf_hub_download

st.set_page_config(page_title="Tourism Predictor", page_icon="✈️")

@st.cache_resource
def load_model():
    model_path = hf_hub_download("Supreeth15/tourism-model", "best_model.pkl")
    return joblib.load(model_path)

st.title("🌍 Tourism Package Predictor")
st.write("Predict Wellness Tourism Package purchase")

model = load_model()
st.success("✅ Model loaded: Bagging")

# Input form
col1, col2 = st.columns(2)
with col1:
    age = st.number_input("Age", 18, 100, 30)
    income = st.number_input("Monthly Income", 0, 200000, 30000)
with col2:
    trips = st.number_input("Number of Trips", 0, 20, 2)
    passport = st.selectbox("Passport", [0, 1])

if st.button("Predict"):
    st.info("Demo prediction interface")
    st.write("Model: Bagging")
    st.write("ROC-AUC: 0.9584")