CharimCibersegurata commited on
Commit
ca4bf8a
1 Parent(s): c9e5fa6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -9
app.py CHANGED
@@ -56,15 +56,12 @@ def predict(frame):
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=3, label="Top 3 Probabilities")
63
  ]
64
- title = "Emotion Classification"
65
- description = "How well can this model predict your emotions? Take a picture with your webcam, and it will guess if" \
66
- " you are: happy, sad, angry, disgusted, scared, surprised, or neutral."
67
- thumbnail = "https://raw.githubusercontent.com/gradio-app/hub-emotion-recognition/master/thumbnail.png"
68
-
69
- gr.Interface(predict, inp, out, capture_session=True, title=title, thumbnail=thumbnail,
70
  description=description).launch(inbrowser=True)
 
56
  return frameClone, probs
57
 
58
 
59
+ inp = gr.inputs.Image(source="webcam")
60
  out = [
61
+ gr.outputs.Image(label="Emoción detectada"),
62
+ gr.outputs.Label(num_top_classes=2, label="Posibles emociones detectadas")
63
  ]
64
+ title = "Reconocimiento de emociones"
65
+ description = "Este espacio muestra una demo del proyecto para Saturdays AI realizado por Benjamin Villegas Mendez (https://saturdays.ai/2021/11/22/reconocimiento-de-emociones/)"
66
+ gr.Interface(predict, inp, out, capture_session=True, title=title,
 
 
 
67
  description=description).launch(inbrowser=True)