Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -70,9 +70,9 @@ def pca(data):
|
|
70 |
pca_model_pkl = 'pca.pkl'
|
71 |
|
72 |
with open(pca_model_pkl, 'rb') as file:
|
73 |
-
pca_model = pickle.load(
|
74 |
with open(encoder_pkl, 'rb') as file:
|
75 |
-
encoder = pickle.load(
|
76 |
|
77 |
one_hot_encoded = encoder.transform(data[['workclass', 'occupation']])
|
78 |
encoded_columns_df = pd.DataFrame(one_hot_encoded, columns=encoder.get_feature_names_out())
|
|
|
70 |
pca_model_pkl = 'pca.pkl'
|
71 |
|
72 |
with open(pca_model_pkl, 'rb') as file:
|
73 |
+
pca_model = pickle.load(file)
|
74 |
with open(encoder_pkl, 'rb') as file:
|
75 |
+
encoder = pickle.load(file)
|
76 |
|
77 |
one_hot_encoded = encoder.transform(data[['workclass', 'occupation']])
|
78 |
encoded_columns_df = pd.DataFrame(one_hot_encoded, columns=encoder.get_feature_names_out())
|