Update app.py
Browse files
app.py
CHANGED
|
@@ -27,27 +27,28 @@ def predict(img):
|
|
| 27 |
title = "Facial Emotion Detector"
|
| 28 |
|
| 29 |
description = gr.Markdown(
|
| 30 |
-
|
| 31 |
-
|
| 32 |
-
|
| 33 |
-
|
|
|
|
| 34 |
|
| 35 |
-
|
| 36 |
-
|
| 37 |
|
| 38 |
-
|
| 39 |
-
"""**DISCLAIMER:** This model does not reveal the actual emotional state of a person. Use and
|
| 40 |
-
interpret results at your own risk!.
|
| 41 |
|
| 42 |
-
|
| 43 |
-
|
| 44 |
-
|
| 45 |
|
| 46 |
-
|
| 47 |
-
|
| 48 |
-
|
| 49 |
-
""").value
|
| 50 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 51 |
enable_queue=True
|
| 52 |
|
| 53 |
examples = ["happy1.jpg","happy2.jpeg","netural.jpg","sad.jpeg","surprise.jpeg"]
|
|
|
|
| 27 |
title = "Facial Emotion Detector"
|
| 28 |
|
| 29 |
description = gr.Markdown(
|
| 30 |
+
"""Ever wondered what a person might be feeling just by looking at their picture?
|
| 31 |
+
Well, get ready to unleash your inner psychic with this hilarious app!
|
| 32 |
+
Simply upload a close-up facial image in JPG or PNG format, and brace yourself for the laugh riot.
|
| 33 |
+
Our emotion detector will take one look at their face and reveal what they might have felt
|
| 34 |
+
when the picture was taken.
|
| 35 |
|
| 36 |
+
**Pro Tip**: For best results, make sure only their face is in the picture.
|
| 37 |
+
It's like reading their mind, but with pixels! 😄
|
| 38 |
|
| 39 |
+
And hey, if you're feeling a bit down, this app is sure to turn that frown upside down!""").value
|
|
|
|
|
|
|
| 40 |
|
| 41 |
+
article = gr.Markdown(
|
| 42 |
+
"""**DISCLAIMER:** This app isn't powered by actual mind-reading technology!
|
| 43 |
+
So, take the results with a grain of salt, or better yet, a pinch of laughter!
|
| 44 |
|
| 45 |
+
**FUN FACT:** Our facial emotion detector was trained on a bunch of wacky pictures
|
| 46 |
+
from the FER2013 dataset. It's not perfect, but it'll give you a good chuckle!
|
|
|
|
|
|
|
| 47 |
|
| 48 |
+
**DATA JOKES:** Did you know the FER2013 dataset consists of 48x48 pixel grayscale images of faces?
|
| 49 |
+
We're talking emotions captured in a tiny pixel universe!
|
| 50 |
+
It's like trying to decipher emotions from a microcosm of hilarity! 🧐
|
| 51 |
+
""").value
|
| 52 |
enable_queue=True
|
| 53 |
|
| 54 |
examples = ["happy1.jpg","happy2.jpeg","netural.jpg","sad.jpeg","surprise.jpeg"]
|