23A475R commited on
Commit
c3c9bab
1 Parent(s): 5535cf3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +17 -17
app.py CHANGED
@@ -72,26 +72,26 @@ out = [
72
  gr.components.Label(num_top_classes=2, label="Top 2 Probabilities")
73
  ]
74
 
75
- # example_images = [
76
- # os.path.join(os.path.dirname(__file__),"images/chandler.jpeg"),
77
- # os.path.join(os.path.dirname(__file__),"images/janice.jpg"),
78
- # os.path.join(os.path.dirname(__file__),"images/joey.jpg"),
79
- # os.path.join(os.path.dirname(__file__),"images/phoebe.jpg"),
80
- # os.path.join(os.path.dirname(__file__),"images/rachel_monica.jpg"),
81
- # os.path.join(os.path.dirname(__file__),"images/ross.jpg"),
82
- # os.path.join(os.path.dirname(__file__),"images/gunther.jpg")
83
- # ]
84
-
85
  example_images = [
86
- ["images/chandler.jpeg"],
87
- ["images/janice.jpg"],
88
- ["images/joey.jpg"],
89
- ["images/phoebe.jpg"],
90
- ["images/rachel_monica.jpg"],
91
- ["images/ross.jpg"],
92
- ["images/gunther.jpg"]
93
  ]
94
 
 
 
 
 
 
 
 
 
 
 
95
  title = "Facial Emotion Recognition"
96
  description = "How well can this model predict your emotions? Take a picture with your webcam, and it will guess if" \
97
  " you are: happy, sad, angry, disgusted, scared, surprised, or neutral."
 
72
  gr.components.Label(num_top_classes=2, label="Top 2 Probabilities")
73
  ]
74
 
 
 
 
 
 
 
 
 
 
 
75
  example_images = [
76
+ os.path.join(os.path.dirname(__file__),"images/chandler.jpeg"),
77
+ os.path.join(os.path.dirname(__file__),"images/janice.jpg"),
78
+ os.path.join(os.path.dirname(__file__),"images/joey.jpg"),
79
+ os.path.join(os.path.dirname(__file__),"images/phoebe.jpg"),
80
+ os.path.join(os.path.dirname(__file__),"images/rachel_monica.jpg"),
81
+ os.path.join(os.path.dirname(__file__),"images/ross.jpg"),
82
+ os.path.join(os.path.dirname(__file__),"images/gunther.jpg")
83
  ]
84
 
85
+ # example_images = [
86
+ # ["images/chandler.jpeg"],
87
+ # ["images/janice.jpg"],
88
+ # ["images/joey.jpg"],
89
+ # ["images/phoebe.jpg"],
90
+ # ["images/rachel_monica.jpg"],
91
+ # ["images/ross.jpg"],
92
+ # ["images/gunther.jpg"]
93
+ # ]
94
+
95
  title = "Facial Emotion Recognition"
96
  description = "How well can this model predict your emotions? Take a picture with your webcam, and it will guess if" \
97
  " you are: happy, sad, angry, disgusted, scared, surprised, or neutral."