Elegbede commited on
Commit
51274fc
·
verified ·
1 Parent(s): 14a162e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -51,7 +51,7 @@ def predict(gender, smoking, yellow_fingers, anxiety, peer_pressure,
51
  'SHORTNESS OF BREATH': shortness_of_breath,
52
  'SWALLOWING DIFFICULTY': swallowing_difficulty,
53
  'CHEST PAIN': chest_pain, 'AGE': age}
54
- input_df = pd.DataFrame.from_dict([input_dict])
55
 
56
  dtest = xgb.DMatrix(input_df)
57
 
 
51
  'SHORTNESS OF BREATH': shortness_of_breath,
52
  'SWALLOWING DIFFICULTY': swallowing_difficulty,
53
  'CHEST PAIN': chest_pain, 'AGE': age}
54
+ input_df = pd.DataFrame.from_dict([input_dict]).astype("int")
55
 
56
  dtest = xgb.DMatrix(input_df)
57