Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -4,15 +4,11 @@ from PIL import Image
|
|
4 |
import numpy as np
|
5 |
|
6 |
# Load your custom regression model
|
7 |
-
model_path = "kia_mnist_keras_model.weights.h5"
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
tf.keras.layers.Dense(100, activation="relu"),
|
13 |
-
tf.keras.layers.Dense(10, activation="softmax")
|
14 |
-
])
|
15 |
-
model.load_weights(model_path)
|
16 |
|
17 |
labels = ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9']
|
18 |
|
|
|
4 |
import numpy as np
|
5 |
|
6 |
# Load your custom regression model
|
7 |
+
model_path = "kia_mnist_keras_model.weights.h5"
|
8 |
+
model_path = "kia_mnist_keras_model.keras"
|
9 |
+
|
10 |
+
#model.load_weights(model_path)
|
11 |
+
model = tf.keras.models.load_model(model_path)
|
|
|
|
|
|
|
|
|
12 |
|
13 |
labels = ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9']
|
14 |
|