Update app.py
Browse files
app.py
CHANGED
|
@@ -7,7 +7,7 @@ import numpy as np
|
|
| 7 |
model = load_model("model/keras_model.h5", compile=False)
|
| 8 |
|
| 9 |
# Load the emotion labels
|
| 10 |
-
emotion_labels = open("labels.txt", "r").readlines()
|
| 11 |
|
| 12 |
# Define the prediction function
|
| 13 |
def predict_emotion(image):
|
|
|
|
| 7 |
model = load_model("model/keras_model.h5", compile=False)
|
| 8 |
|
| 9 |
# Load the emotion labels
|
| 10 |
+
emotion_labels = open("model/labels.txt", "r").readlines()
|
| 11 |
|
| 12 |
# Define the prediction function
|
| 13 |
def predict_emotion(image):
|