Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -17,7 +17,7 @@ def predict(age, workclass, education, marital_status, occupation, relationship,
|
|
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 = {
|
20 |
-
"age": [age], "workclass":[workclass], "educational-num":[education],
|
21 |
"race":[race], "gender":[gender], "capital-gain":[capital_gain], "capital-loss":[capital_loss],
|
22 |
"hours-per-week":[hours_per_week], "native-country":[native_country]}
|
23 |
df = pd.DataFrame(data=columns)
|
|
|
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 = {
|
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]}
|
23 |
df = pd.DataFrame(data=columns)
|