pavan2606 commited on
Commit
96bf9e7
1 Parent(s): 947009b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +17 -16
app.py CHANGED
@@ -27,27 +27,28 @@ def predict(img):
27
  title = "Facial Emotion Detector"
28
 
29
  description = gr.Markdown(
30
- """Ever wondered what a person might be feeling looking at their picture?
31
- Well, now you can! Try this fun app. Just upload a facial image in JPG or
32
- PNG format. You can now see what they might have felt when the picture
33
- was taken.
 
34
 
35
- **Tip**: Be sure to only include face to get best results. Check some sample images
36
- below for inspiration!""").value
37
 
38
- article = gr.Markdown(
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
- **PREMISE:** The idea is to determine an overall emotion of a person
43
- based on the pictures. We are restricting pictures to only include close-up facial
44
- images.
45
 
46
- **DATA:** FER2013 dataset consists of 48x48 pixel grayscale images of faces.Images
47
- are assigned one of the 7 emotions: Angry, Disgust, Fear, Happy, Sad, Surprise, and Neutral.
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"]