Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -4,7 +4,8 @@ from tensorflow.keras.preprocessing import image
|
|
4 |
import numpy as np
|
5 |
|
6 |
# Use TFSMLayer to load the SavedModel
|
7 |
-
model = tf.keras.
|
|
|
8 |
class_names = ["Non-Recyclable", "Recyclable"]
|
9 |
|
10 |
def classify_image(img):
|
|
|
4 |
import numpy as np
|
5 |
|
6 |
# Use TFSMLayer to load the SavedModel
|
7 |
+
model = tf.keras.models.load_model("waste_sort_model.keras")
|
8 |
+
|
9 |
class_names = ["Non-Recyclable", "Recyclable"]
|
10 |
|
11 |
def classify_image(img):
|