23A475R commited on
Commit
a6710ea
1 Parent(s): 52fabce

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +23 -0
app.py CHANGED
@@ -146,5 +146,28 @@ demo = gr.Interface(
146
  theme="shivi/calm_seafoam"
147
  )
148
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
149
  if __name__ == "__main__":
150
  demo.launch()
 
146
  theme="shivi/calm_seafoam"
147
  )
148
 
149
+ demo = gr.Interface(
150
+ fn = predict_emotion,
151
+ inputs = [gr.Image(type="numpy"), gr.inputs.Video(type="numpy")],
152
+ outputs = [gr.Image(), gr.outputs.Video("output.mp4")],
153
+ # gr.components.Image(label="Predicted Emotion"),
154
+ # gr.components.Label(num_top_classes=2, label="Top 2 Probabilities")
155
+ #flagging_options=["blurry", "incorrect", "other"],
156
+ examples = [
157
+
158
+ os.path.join(os.path.dirname(__file__), "images/chandler.jpeg"),
159
+ os.path.join(os.path.dirname(__file__), "images/janice.jpeg"),
160
+ os.path.join(os.path.dirname(__file__), "images/joey.jpeg"),
161
+ os.path.join(os.path.dirname(__file__), "images/phoebe.jpeg"),
162
+ os.path.join(os.path.dirname(__file__), "images/rachel_monica.jpeg"),
163
+ os.path.join(os.path.dirname(__file__), "images/ross.jpeg"),
164
+ os.path.join(os.path.dirname(__file__), "images/gunther.jpeg")
165
+
166
+ ],
167
+ title = "How are you feeling?",
168
+ theme = "shivi/calm_seafoam"
169
+ )
170
+
171
+
172
  if __name__ == "__main__":
173
  demo.launch()