Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -137,7 +137,7 @@ def download_and_read_image(url):
|
|
137 |
|
138 |
def decode_batch_predictions(img_url):
|
139 |
img, img_path = download_and_read_image(img_url)
|
140 |
-
img_size=(128, 32
|
141 |
input_image = tf.io.decode_png(img, channels=1)
|
142 |
input_image = distortion_free_resize(input_image, img_size)
|
143 |
input_image = tf.image.convert_image_dtype(input_image, tf.float32)/255.0
|
|
|
137 |
|
138 |
def decode_batch_predictions(img_url):
|
139 |
img, img_path = download_and_read_image(img_url)
|
140 |
+
img_size=(128, 32)
|
141 |
input_image = tf.io.decode_png(img, channels=1)
|
142 |
input_image = distortion_free_resize(input_image, img_size)
|
143 |
input_image = tf.image.convert_image_dtype(input_image, tf.float32)/255.0
|