Spaces:
Running
Running
Update app.py
Browse files
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]}
|