Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -134,7 +134,7 @@ def decode_batch_predictions(input_image):
|
|
134 |
|
135 |
img_size=(128, 32)
|
136 |
input_image = tf.convert_to_tensor(input_image, dtype=tf.uint8)
|
137 |
-
input_image = tf.image.
|
138 |
input_image = distortion_free_resize(input_image, img_size)
|
139 |
input_image = tf.image.convert_image_dtype(input_image, tf.float32)/255.0
|
140 |
|
|
|
134 |
|
135 |
img_size=(128, 32)
|
136 |
input_image = tf.convert_to_tensor(input_image, dtype=tf.uint8)
|
137 |
+
input_image = tf.image.decode_image(input_image, channels=1)
|
138 |
input_image = distortion_free_resize(input_image, img_size)
|
139 |
input_image = tf.image.convert_image_dtype(input_image, tf.float32)/255.0
|
140 |
|