Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -15,7 +15,16 @@ st.title("Emotion Recognition App by Prateek Mohan")
|
|
15 |
|
16 |
# Interface for uploading an image
|
17 |
uploaded_image = st.file_uploader("Please upload an image", type=["jpg", "png"], accept_multiple_files=False)
|
18 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
19 |
# Process the image immediately after upload
|
20 |
if uploaded_image:
|
21 |
# Load and display the image
|
|
|
15 |
|
16 |
# Interface for uploading an image
|
17 |
uploaded_image = st.file_uploader("Please upload an image", type=["jpg", "png"], accept_multiple_files=False)
|
18 |
+
color_map = {
|
19 |
+
'Neutral': '#B38B6D',
|
20 |
+
'Happy': '#FFFF00',
|
21 |
+
'Sad': '#0000FF',
|
22 |
+
'Angry': '#FF0000',
|
23 |
+
'Disgust': '#008000',
|
24 |
+
'Surprise': '#FFA500',
|
25 |
+
'Fear': '#000000'
|
26 |
+
|
27 |
+
}
|
28 |
# Process the image immediately after upload
|
29 |
if uploaded_image:
|
30 |
# Load and display the image
|