Spaces:
Runtime error
Runtime error
Commit
·
737d73f
1
Parent(s):
1f7920e
Update classifier.py
Browse files- classifier.py +2 -1
classifier.py
CHANGED
@@ -28,8 +28,9 @@ def predict_and_display(uploaded_file, model, class_labels):
|
|
28 |
predicted_class_index = np.argmax(prediction)
|
29 |
predicted_class_label = class_labels[predicted_class_index]
|
30 |
|
|
|
31 |
st.image(img, use_column_width=True)
|
32 |
-
|
33 |
|
34 |
def run():
|
35 |
st.write('##### Facial Emotions/Expressions Detection')
|
|
|
28 |
predicted_class_index = np.argmax(prediction)
|
29 |
predicted_class_label = class_labels[predicted_class_index]
|
30 |
|
31 |
+
st.markdown(f"<h1 style='color:blue;font-weight: bold;'>Detected Emotion of the Facial Expression is: {predicted_class_label}</h1>")
|
32 |
st.image(img, use_column_width=True)
|
33 |
+
|
34 |
|
35 |
def run():
|
36 |
st.write('##### Facial Emotions/Expressions Detection')
|