Update app.py
Browse files
app.py
CHANGED
|
@@ -12,8 +12,11 @@ from keras.utils import np_utils
|
|
| 12 |
#from skimage import io
|
| 13 |
import matplotlib.pyplot as plt
|
| 14 |
#from tensorflow.python.keras.utils import np_utils
|
|
|
|
|
|
|
|
|
|
| 15 |
|
| 16 |
-
new_model = tf.keras.models.load_model('saved_model.pb')
|
| 17 |
objects = ('angry', 'disgust', 'fear', 'happy', 'sad', 'surprise', 'neutral')
|
| 18 |
y_pos = np.arange(len(objects))
|
| 19 |
print(y_pos)
|
|
|
|
| 12 |
#from skimage import io
|
| 13 |
import matplotlib.pyplot as plt
|
| 14 |
#from tensorflow.python.keras.utils import np_utils
|
| 15 |
+
import pickle
|
| 16 |
+
with Path("modelo_entrenado.pkl").open("br")as f:
|
| 17 |
+
new_model=pickle.load(f)
|
| 18 |
|
| 19 |
+
#new_model = tf.keras.models.load_model('saved_model.pb')
|
| 20 |
objects = ('angry', 'disgust', 'fear', 'happy', 'sad', 'surprise', 'neutral')
|
| 21 |
y_pos = np.arange(len(objects))
|
| 22 |
print(y_pos)
|