Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -30,8 +30,7 @@ def download_model():
|
|
30 |
model_file = download_model()
|
31 |
|
32 |
# Load the model
|
33 |
-
|
34 |
-
model = tf.saved_model.load(model_file)
|
35 |
|
36 |
# Perform image classification for single class output
|
37 |
# def predict_class(image):
|
|
|
30 |
model_file = download_model()
|
31 |
|
32 |
# Load the model
|
33 |
+
model = tf.keras.models.load_model(model_file, compile=True)
|
|
|
34 |
|
35 |
# Perform image classification for single class output
|
36 |
# def predict_class(image):
|