grkavi0912 commited on
Commit
75458d9
·
verified ·
1 Parent(s): 5b5db34

Upload folder using huggingface_hub

Browse files
Files changed (2) hide show
  1. app.py +3 -2
  2. requirements.txt +1 -1
app.py CHANGED
@@ -7,6 +7,7 @@ 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,7 +29,7 @@ Number_of_Followups= st.number_input("Number of Followups",min_value=0,max_value
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,7 +50,7 @@ input_data = pd.DataFrame({
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
 
7
 
8
  # --- This is a dummy comment to force re-upload after Dockerfile fix ---
9
  # --- Adding another line to ensure content change detection ---
10
+ # --- Adding yet another line for version update ---
11
 
12
  #Download and load the model
13
  model_path = hf_hub_download(repo_id="grkavi0912/Tpro", filename="best_tour_model.joblib", repo_type="model") # Added repo_type
 
29
  Product_Pitched= st.selectbox("Product Pitched",["Basic","Standard","Premium"])
30
  Preferred_Property_Star= st.number_input("Preferred Property Star",min_value=1,max_value=5)
31
  Marital_Status= st.selectbox("Marital Status",["Married","Divorced","Single"])
32
+ NumberOfTrips= st.number_input("Number of Trips",min_value=1,max_value=10)
33
  Passport= st.selectbox("Passport",["Yes","No"])
34
  Pitch_Satisfaction_Score= st.number_input("Pitch Satisfaction Score",min_value=1,max_value=5)
35
  Own_Car= st.selectbox("Own Car",["Yes","No"])
 
50
  "ProductPitched": [Product_Pitched], # Corrected variable name
51
  "PreferredPropertyStar": [Preferred_Property_Star], # Corrected variable name
52
  "MaritalStatus": [Marital_Status], # Corrected variable name
53
+ "NumberOfTrips": [NumberOfTrips], # Corrected variable name
54
  "Passport": [1 if Passport == "Yes" else 0], # Converted to numerical
55
  "PitchSatisfactionScore": [Pitch_Satisfaction_Score], # Corrected variable name
56
  "OwnCar": [1 if Own_Car == "Yes" else 0], # Converted to numerical
requirements.txt CHANGED
@@ -2,6 +2,6 @@ pandas==2.2.3
2
  huggingface_hub==0.32.6
3
  streamlit==1.43.2
4
  joblib==1.5.1
5
- scikit-learn==1.6.0
6
  xgboost==2.1.4
7
  mlflow==3.0.1
 
2
  huggingface_hub==0.32.6
3
  streamlit==1.43.2
4
  joblib==1.5.1
5
+ scikit-learn==1.6.1
6
  xgboost==2.1.4
7
  mlflow==3.0.1