Spaces:
Runtime error
Runtime error
Commit
·
fe0bc45
1
Parent(s):
d291235
Update classifier.py
Browse files- classifier.py +1 -3
classifier.py
CHANGED
@@ -28,7 +28,7 @@ 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.markdown(f"<
|
32 |
st.image(img, use_column_width=True)
|
33 |
|
34 |
|
@@ -44,8 +44,6 @@ def run():
|
|
44 |
if uploaded_files:
|
45 |
for uploaded_file in uploaded_files:
|
46 |
st.write("filename:", uploaded_file.name)
|
47 |
-
else:
|
48 |
-
st.write("Please upload your image properly")
|
49 |
# Close the form
|
50 |
submitted = st.form_submit_button('Predict')
|
51 |
|
|
|
28 |
predicted_class_index = np.argmax(prediction)
|
29 |
predicted_class_label = class_labels[predicted_class_index]
|
30 |
|
31 |
+
st.markdown(f"<h3 style='font-weight: bold;'>Detected Emotion of the Facial Expression is:</h3><h1 style='color:blue; font-weight: bold;'> {predicted_class_label}</h1>",unsafe_allow_html=True)
|
32 |
st.image(img, use_column_width=True)
|
33 |
|
34 |
|
|
|
44 |
if uploaded_files:
|
45 |
for uploaded_file in uploaded_files:
|
46 |
st.write("filename:", uploaded_file.name)
|
|
|
|
|
47 |
# Close the form
|
48 |
submitted = st.form_submit_button('Predict')
|
49 |
|