harishsohani commited on
Commit
be1b8e6
·
verified ·
1 Parent(s): cb274c9

Upload folder using huggingface_hub

Browse files
Files changed (1) hide show
  1. app.py +5 -4
app.py CHANGED
@@ -60,7 +60,7 @@ div[data-testid="stVerticalBlock"] {
60
 
61
  # Download and load the model
62
  model_path = hf_hub_download(
63
- repo_id="harishsohani/MLOP-Project-Tourism",
64
  filename="best_tourism_model.joblib"
65
  )
66
  model = joblib.load(model_path)
@@ -132,7 +132,7 @@ Passport = 1 if Passport_display == "Yes" else 0
132
  # ---------------------------------------------------------
133
  # TRAVEL INFORMATION
134
  # ---------------------------------------------------------
135
- # Keep section expanded by default - so it is visible when we open
136
  with st.expander("✈️ 2. Travel Information", expanded=True):
137
 
138
  col1, col2, col3, col4, col5 = st.columns(5)
@@ -153,7 +153,7 @@ with st.expander("✈️ 2. Travel Information", expanded=True):
153
  # ---------------------------------------------------------
154
  # INTERACTION INFORMATION
155
  # ---------------------------------------------------------
156
- # Keep section expanded by default - so it is visible when we open
157
  with st.expander("🗣️ 3. Interaction Details", expanded=True):
158
 
159
  col1, col2, col3, col4, col5 = st.columns(5)
@@ -216,4 +216,5 @@ if st.button("🔍 Predict", use_container_width=True):
216
 
217
  # Show the etails of data frame prepared from user input
218
  st.subheader("📦 Input Data Summary")
219
- st.json(input_df)
 
 
60
 
61
  # Download and load the model
62
  model_path = hf_hub_download(
63
+ repo_id="harishsohani/MLOP-Project-Tourism",
64
  filename="best_tourism_model.joblib"
65
  )
66
  model = joblib.load(model_path)
 
132
  # ---------------------------------------------------------
133
  # TRAVEL INFORMATION
134
  # ---------------------------------------------------------
135
+ # Keep section expanded by default - so it is visible when we open
136
  with st.expander("✈️ 2. Travel Information", expanded=True):
137
 
138
  col1, col2, col3, col4, col5 = st.columns(5)
 
153
  # ---------------------------------------------------------
154
  # INTERACTION INFORMATION
155
  # ---------------------------------------------------------
156
+ # Keep section expanded by default - so it is visible when we open
157
  with st.expander("🗣️ 3. Interaction Details", expanded=True):
158
 
159
  col1, col2, col3, col4, col5 = st.columns(5)
 
216
 
217
  # Show the etails of data frame prepared from user input
218
  st.subheader("📦 Input Data Summary")
219
+ st.dataframe(input_df)
220
+ #st.json(input_df)