Spaces:
Runtime error
Runtime error
Commit
Β·
20a93dc
1
Parent(s):
8918e11
Update app.py
Browse files
app.py
CHANGED
@@ -14,7 +14,7 @@ def infer(original_image):
|
|
14 |
image = keras.preprocessing.image.img_to_array(original_image)
|
15 |
image = image.astype("float32") / 255.0
|
16 |
image = np.expand_dims(image, axis=0)
|
17 |
-
|
18 |
output_image = output[0] * 255.0
|
19 |
output_image = output_image.clip(0, 255)
|
20 |
output_image = output_image.reshape(
|
|
|
14 |
image = keras.preprocessing.image.img_to_array(original_image)
|
15 |
image = image.astype("float32") / 255.0
|
16 |
image = np.expand_dims(image, axis=0)
|
17 |
+
output = model.predict(image)
|
18 |
output_image = output[0] * 255.0
|
19 |
output_image = output_image.clip(0, 255)
|
20 |
output_image = output_image.reshape(
|