Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -28,7 +28,20 @@ def predict(img):
|
|
| 28 |
return [emotions, sentiments] #{**emotions, **sentiments}
|
| 29 |
|
| 30 |
# Gradio
|
| 31 |
-
title = "Facial Emotion and Sentiment Detector"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 32 |
|
| 33 |
enable_queue=True
|
| 34 |
|
|
|
|
| 28 |
return [emotions, sentiments] #{**emotions, **sentiments}
|
| 29 |
|
| 30 |
# Gradio
|
| 31 |
+
title = "Facial Emotion and Sentiment Detector"
|
| 32 |
+
|
| 33 |
+
description = gr.Markdown(
|
| 34 |
+
"""Choose a face image""").value
|
| 35 |
+
|
| 36 |
+
article = gr.Markdown(
|
| 37 |
+
"""
|
| 38 |
+
Positive (Happy, Surprise)
|
| 39 |
+
|
| 40 |
+
Negative (Angry, Disgust, Fear, Sad)
|
| 41 |
+
|
| 42 |
+
Neutral (Neutral)
|
| 43 |
+
|
| 44 |
+
**MODEL:** VGG19 """).value
|
| 45 |
|
| 46 |
enable_queue=True
|
| 47 |
|