Spaces:
Sleeping
Sleeping
Upload folder using huggingface_hub
Browse files
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.
|
|
|
|
|
|
| 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)
|