Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -4,10 +4,9 @@ from PIL import Image
|
|
| 4 |
import io
|
| 5 |
|
| 6 |
# Load the saved model
|
| 7 |
-
from
|
| 8 |
|
| 9 |
-
|
| 10 |
-
model = load_model('/content/drive/MyDrive/ICT Project/Emotion_detection.h5')
|
| 11 |
|
| 12 |
# Define the emotion labels
|
| 13 |
emotion_labels = ['happy', 'sad', 'neutral']
|
|
|
|
| 4 |
import io
|
| 5 |
|
| 6 |
# Load the saved model
|
| 7 |
+
from huggingface_hub import from_pretrained_keras
|
| 8 |
|
| 9 |
+
model = from_pretrained_keras("Hammad712/Emotion_Detection")
|
|
|
|
| 10 |
|
| 11 |
# Define the emotion labels
|
| 12 |
emotion_labels = ['happy', 'sad', 'neutral']
|