Update app.py
Browse files
app.py
CHANGED
|
@@ -13,8 +13,9 @@ from keras.utils import np_utils
|
|
| 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 |
-
|
|
|
|
| 18 |
|
| 19 |
#new_model = tf.keras.models.load_model('saved_model.pb')
|
| 20 |
objects = ('angry', 'disgust', 'fear', 'happy', 'sad', 'surprise', 'neutral')
|
|
|
|
| 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 |
+
new_model = pickle.load(open("modelo_entrenado", 'rb'))
|
| 19 |
|
| 20 |
#new_model = tf.keras.models.load_model('saved_model.pb')
|
| 21 |
objects = ('angry', 'disgust', 'fear', 'happy', 'sad', 'surprise', 'neutral')
|