23A475R commited on
Commit
ef83c22
1 Parent(s): d5522ff

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -4
app.py CHANGED
@@ -55,11 +55,10 @@ def predict(frame):
55
 
56
  return frameClone, probs
57
 
58
-
59
- inp = gr.inputs.Image(source="webcam", label="Your face")
60
  out = [
61
- gr.outputs.Image(label="Predicted Emotion"),
62
- gr.outputs.Label(num_top_classes=2, label="Top 2 Probabilities")
63
  ]
64
  title = "Facial Emotion Recognition"
65
  description = "How well can this model predict your emotions? Take a picture with your webcam, and it will guess if" \
 
55
 
56
  return frameClone, probs
57
 
58
+ inp = gr.components.Image(source="webcam", label="Your face")
 
59
  out = [
60
+ gr.components.Image(label="Predicted Emotion"),
61
+ gr.components.Label(num_top_classes=2, label="Top 2 Probabilities")
62
  ]
63
  title = "Facial Emotion Recognition"
64
  description = "How well can this model predict your emotions? Take a picture with your webcam, and it will guess if" \