Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -4,7 +4,7 @@ from huggingface_hub import from_pretrained_fastai
|
|
4 |
|
5 |
# Cargar el modelo desde Hugging Face
|
6 |
learn = from_pretrained_fastai("abelllanas/emotions_dl")
|
7 |
-
labels =
|
8 |
|
9 |
# Funci贸n para predecir emociones
|
10 |
def predict(img):
|
|
|
4 |
|
5 |
# Cargar el modelo desde Hugging Face
|
6 |
learn = from_pretrained_fastai("abelllanas/emotions_dl")
|
7 |
+
labels = ["joy", "anger", "fear", "sadness"] # Obtener las etiquetas de emociones
|
8 |
|
9 |
# Funci贸n para predecir emociones
|
10 |
def predict(img):
|