Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -222,7 +222,8 @@ responses = {
|
|
222 |
"Q25": selected_statement3_encoded,
|
223 |
"Q26": selected_statement4_encoded
|
224 |
}
|
225 |
-
|
|
|
226 |
|
227 |
|
228 |
# Load the saved model
|
@@ -241,8 +242,7 @@ label_mapping = {
|
|
241 |
7: "Cora",
|
242 |
8: "Strangers"
|
243 |
}
|
244 |
-
|
245 |
-
st.write(df)
|
246 |
# Make prediction
|
247 |
if st.button('Submit'):
|
248 |
prediction_numeric = model.predict(df)[0]
|
|
|
222 |
"Q25": selected_statement3_encoded,
|
223 |
"Q26": selected_statement4_encoded
|
224 |
}
|
225 |
+
df=pd.DataFrame([responses])
|
226 |
+
st.write(df)
|
227 |
|
228 |
|
229 |
# Load the saved model
|
|
|
242 |
7: "Cora",
|
243 |
8: "Strangers"
|
244 |
}
|
245 |
+
|
|
|
246 |
# Make prediction
|
247 |
if st.button('Submit'):
|
248 |
prediction_numeric = model.predict(df)[0]
|