Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -30,11 +30,13 @@ def model(img):
|
|
30 |
# Set the loaded weights to the model
|
31 |
loaded_model.set_weights(loaded_model_weights)
|
32 |
|
|
|
33 |
# Load and preprocess the image
|
34 |
try:
|
35 |
image = Image.open(img).convert(channel).resize((256, 256))
|
36 |
except:
|
37 |
print("ERROR")
|
|
|
38 |
return "ERROR"
|
39 |
x = np.array(image)
|
40 |
x = np.expand_dims(x, axis=0)
|
|
|
30 |
# Set the loaded weights to the model
|
31 |
loaded_model.set_weights(loaded_model_weights)
|
32 |
|
33 |
+
loaded_model.summary()
|
34 |
# Load and preprocess the image
|
35 |
try:
|
36 |
image = Image.open(img).convert(channel).resize((256, 256))
|
37 |
except:
|
38 |
print("ERROR")
|
39 |
+
print(image)
|
40 |
return "ERROR"
|
41 |
x = np.array(image)
|
42 |
x = np.expand_dims(x, axis=0)
|