ajeetkumar01
commited on
Commit
•
9837a81
1
Parent(s):
59d1426
Update app.py
Browse files
app.py
CHANGED
@@ -70,6 +70,9 @@ def main():
|
|
70 |
response = model.predict(processed_text)
|
71 |
predicted_class = response.argmax(axis=-1)[0]
|
72 |
# Map the predicted class index to the corresponding label
|
|
|
|
|
|
|
73 |
predicted_label = class_labels.get(predicted_class, "Unknown")
|
74 |
|
75 |
# Display the prediction result
|
|
|
70 |
response = model.predict(processed_text)
|
71 |
predicted_class = response.argmax(axis=-1)[0]
|
72 |
# Map the predicted class index to the corresponding label
|
73 |
+
st.write("Predicted Index:", predicted_class)
|
74 |
+
st.write("Predicted Mental State:", predicted_label)
|
75 |
+
|
76 |
predicted_label = class_labels.get(predicted_class, "Unknown")
|
77 |
|
78 |
# Display the prediction result
|