matsammut commited on
Commit
f9d5a22
·
verified ·
1 Parent(s): 481e569

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -16,7 +16,7 @@ def predict(age, workclass, education, marital_status, occupation, relationship,
16
  # "age": [age], "workclass":[workclass], "educational-num":[education], "marital-status":[marital_status], "occupation":[occupation],
17
  # "relationship":[relationship], "race":[race], "gender":[gender], "capital-gain":[capital_gain], "capital-loss":[capital_loss],
18
  # "hours-per-week":[hours_per_week], "native-country":[native_country]}
19
- columns = { "0":[0]
20
  "age": [age], "workclass":[workclass], "educational-num":[education], "occupation":[occupation],
21
  "race":[race], "gender":[gender], "capital-gain":[capital_gain], "capital-loss":[capital_loss],
22
  "hours-per-week":[hours_per_week], "native-country":[native_country]}
 
16
  # "age": [age], "workclass":[workclass], "educational-num":[education], "marital-status":[marital_status], "occupation":[occupation],
17
  # "relationship":[relationship], "race":[race], "gender":[gender], "capital-gain":[capital_gain], "capital-loss":[capital_loss],
18
  # "hours-per-week":[hours_per_week], "native-country":[native_country]}
19
+ columns = { "0":[0],
20
  "age": [age], "workclass":[workclass], "educational-num":[education], "occupation":[occupation],
21
  "race":[race], "gender":[gender], "capital-gain":[capital_gain], "capital-loss":[capital_loss],
22
  "hours-per-week":[hours_per_week], "native-country":[native_country]}