Victorano commited on
Commit
a6f46f6
•
1 Parent(s): 9d20d64

more example images+requirements.txt added

Browse files
Files changed (6) hide show
  1. .gitattributes +1 -0
  2. app.py +1 -1
  3. detect.py +0 -10
  4. examples/angry.jpg +0 -0
  5. examples/sad.jpg +0 -0
  6. requirements.txt +3 -0
.gitattributes CHANGED
@@ -33,3 +33,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
 
 
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
36
+ eff_quantized.onnx filter=lfs diff=lfs merge=lfs -text
app.py CHANGED
@@ -18,7 +18,7 @@ def predict(img):
18
 
19
  title = "Human Emotion Detection 😭🤣🥹"
20
  description = "An EfficientNet ONNX quantized feature extractor computer vision model to classify images and detect the emotion of the person in it.(Uploaded image should be of a single person)"
21
- article = "Full Source code from scratch can be found in the huggingface Space...."
22
 
23
  # Create examples list from "examples/" directory
24
  example_list = [["examples/" + example] for example in os.listdir("examples")]
 
18
 
19
  title = "Human Emotion Detection 😭🤣🥹"
20
  description = "An EfficientNet ONNX quantized feature extractor computer vision model to classify images and detect the emotion of the person in it.(Uploaded image should be of a single person)"
21
+ article = "Full Source code from scratch can be found in the huggingface Space: https://huggingface.co/spaces/Victorano/human_emotion_detection"
22
 
23
  # Create examples list from "examples/" directory
24
  example_list = [["examples/" + example] for example in os.listdir("examples")]
detect.py DELETED
@@ -1,10 +0,0 @@
1
- from PIL import Image
2
- from io import BytesIO
3
- import numpy as np
4
-
5
-
6
- def emo_router(im):
7
- print(f"the Image: {im}")
8
- image = np.array(im)
9
-
10
- return image
 
 
 
 
 
 
 
 
 
 
 
examples/angry.jpg ADDED
examples/sad.jpg ADDED
requirements.txt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ numpy==1.26.3
2
+ onnxruntime==1.18.0
3
+ gradio==4.44.0