Spaces:
Sleeping
Sleeping
Upload folder using huggingface_hub
Browse files
app.py
CHANGED
|
@@ -6,6 +6,7 @@ from huggingface_hub import hf_hub_download # Corrected import statement
|
|
| 6 |
import joblib # Corrected typo
|
| 7 |
|
| 8 |
# --- This is a dummy comment to force re-upload after Dockerfile fix ---
|
|
|
|
| 9 |
|
| 10 |
#Download and load the model
|
| 11 |
model_path = hf_hub_download(repo_id="grkavi0912/Tpro", filename="best_tour_model.joblib", repo_type="model") # Added repo_type
|
|
@@ -27,7 +28,7 @@ Number_of_Followups= st.number_input("Number of Followups",min_value=0,max_value
|
|
| 27 |
Product_Pitched= st.selectbox("Product Pitched",["Basic","Standard","Premium"])
|
| 28 |
Preferred_Property_Star= st.number_input("Preferred Property Star",min_value=1,max_value=5)
|
| 29 |
Marital_Status= st.selectbox("Marital Status",["Married","Divorced","Single"])
|
| 30 |
-
|
| 31 |
Passport= st.selectbox("Passport",["Yes","No"])
|
| 32 |
Pitch_Satisfaction_Score= st.number_input("Pitch Satisfaction Score",min_value=1,max_value=5)
|
| 33 |
Own_Car= st.selectbox("Own Car",["Yes","No"])
|
|
@@ -48,7 +49,7 @@ input_data = pd.DataFrame({
|
|
| 48 |
"ProductPitched": [Product_Pitched], # Corrected variable name
|
| 49 |
"PreferredPropertyStar": [Preferred_Property_Star], # Corrected variable name
|
| 50 |
"MaritalStatus": [Marital_Status], # Corrected variable name
|
| 51 |
-
"NumberOfTrips": [
|
| 52 |
"Passport": [1 if Passport == "Yes" else 0], # Converted to numerical
|
| 53 |
"PitchSatisfactionScore": [Pitch_Satisfaction_Score], # Corrected variable name
|
| 54 |
"OwnCar": [1 if Own_Car == "Yes" else 0], # Converted to numerical
|
|
|
|
| 6 |
import joblib # Corrected typo
|
| 7 |
|
| 8 |
# --- This is a dummy comment to force re-upload after Dockerfile fix ---
|
| 9 |
+
# --- Adding another line to ensure content change detection ---
|
| 10 |
|
| 11 |
#Download and load the model
|
| 12 |
model_path = hf_hub_download(repo_id="grkavi0912/Tpro", filename="best_tour_model.joblib", repo_type="model") # Added repo_type
|
|
|
|
| 28 |
Product_Pitched= st.selectbox("Product Pitched",["Basic","Standard","Premium"])
|
| 29 |
Preferred_Property_Star= st.number_input("Preferred Property Star",min_value=1,max_value=5)
|
| 30 |
Marital_Status= st.selectbox("Marital Status",["Married","Divorced","Single"])
|
| 31 |
+
Number_Of_Trips= st.number_input("Number of Trips",min_value=1,max_value=10)
|
| 32 |
Passport= st.selectbox("Passport",["Yes","No"])
|
| 33 |
Pitch_Satisfaction_Score= st.number_input("Pitch Satisfaction Score",min_value=1,max_value=5)
|
| 34 |
Own_Car= st.selectbox("Own Car",["Yes","No"])
|
|
|
|
| 49 |
"ProductPitched": [Product_Pitched], # Corrected variable name
|
| 50 |
"PreferredPropertyStar": [Preferred_Property_Star], # Corrected variable name
|
| 51 |
"MaritalStatus": [Marital_Status], # Corrected variable name
|
| 52 |
+
"NumberOfTrips": [Number_Of_Trips], # Corrected variable name
|
| 53 |
"Passport": [1 if Passport == "Yes" else 0], # Converted to numerical
|
| 54 |
"PitchSatisfactionScore": [Pitch_Satisfaction_Score], # Corrected variable name
|
| 55 |
"OwnCar": [1 if Own_Car == "Yes" else 0], # Converted to numerical
|