manasranjanpani commited on
Commit
157f524
·
verified ·
1 Parent(s): 16d485a

Upload folder using huggingface_hub

Browse files
Files changed (1) hide show
  1. app.py +2 -4
app.py CHANGED
@@ -13,8 +13,7 @@ model = joblib.load("extraaLearn_model_prediction_model_v1_0.joblib")
13
  # -----------------------------
14
  # Feature mapping (incoming JSON -> model column names)
15
  # -----------------------------
16
- feature_mapping = {
17
- "id": "ID",
18
  "age": "age",
19
  "currentOccupation": "current_occupation",
20
  "firstInteraction": "first_interaction",
@@ -27,8 +26,7 @@ feature_mapping = {
27
  "printMediaType2": "print_media_type2",
28
  "digitalMedia": "digital_media",
29
  "educationalChannels": "educational_channels",
30
- "referral": "referral",
31
- "status": "status" # (target) include if present in input; otherwise leave out at inference
32
  }
33
 
34
 
 
13
  # -----------------------------
14
  # Feature mapping (incoming JSON -> model column names)
15
  # -----------------------------
16
+ feature_mapping = {
 
17
  "age": "age",
18
  "currentOccupation": "current_occupation",
19
  "firstInteraction": "first_interaction",
 
26
  "printMediaType2": "print_media_type2",
27
  "digitalMedia": "digital_media",
28
  "educationalChannels": "educational_channels",
29
+ "referral": "referral"
 
30
  }
31
 
32