Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -70,7 +70,7 @@ if st.button("Predict Personality by Open Question F"):
|
|
70 |
|
71 |
|
72 |
# Apply predictions across all rows
|
73 |
-
data_open['Predicted_F'] = data_open.apply(
|
74 |
st.dataframe(data_open[['True_label', 'Predicted_F']])
|
75 |
|
76 |
if st.button("Predict Personality by Open Question M"):
|
@@ -83,5 +83,5 @@ if st.button("Predict Personality by Open Question M"):
|
|
83 |
return highest_score_label
|
84 |
|
85 |
# Apply predictions across all rows
|
86 |
-
data_open['Predicted_M'] = data_open.apply(
|
87 |
st.dataframe(data_open[['True_label', 'Predicted_M']])
|
|
|
70 |
|
71 |
|
72 |
# Apply predictions across all rows
|
73 |
+
data_open['Predicted_F'] = data_open.apply(get_predictions, axis=1)
|
74 |
st.dataframe(data_open[['True_label', 'Predicted_F']])
|
75 |
|
76 |
if st.button("Predict Personality by Open Question M"):
|
|
|
83 |
return highest_score_label
|
84 |
|
85 |
# Apply predictions across all rows
|
86 |
+
data_open['Predicted_M'] = data_open.apply(get_predictionsM, axis=1)
|
87 |
st.dataframe(data_open[['True_label', 'Predicted_M']])
|