Spaces:
Runtime error
Runtime error
CharimCibersegurata
commited on
Commit
•
ca4bf8a
1
Parent(s):
c9e5fa6
Update app.py
Browse files
app.py
CHANGED
@@ -56,15 +56,12 @@ def predict(frame):
|
|
56 |
return frameClone, probs
|
57 |
|
58 |
|
59 |
-
inp = gr.inputs.Image(source="webcam"
|
60 |
out = [
|
61 |
-
gr.outputs.Image(label="
|
62 |
-
gr.outputs.Label(num_top_classes=
|
63 |
]
|
64 |
-
title = "
|
65 |
-
description = "
|
66 |
-
|
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)
|