Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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 |
|