Hammad712 commited on
Commit
960f672
·
verified ·
1 Parent(s): 74ff680

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -4,10 +4,9 @@ from PIL import Image
4
  import io
5
 
6
  # Load the saved model
7
- from tensorflow.keras.models import load_model
8
 
9
- # Load the model architecture and weights
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']