Spaces:
Sleeping
Sleeping
fixing image predection
Browse files
app.py
CHANGED
|
@@ -33,7 +33,7 @@ def prepare_image(img_bytes):
|
|
| 33 |
|
| 34 |
img_array = image.img_to_array(img)
|
| 35 |
img_array = np.expand_dims(img_array, axis=0)
|
| 36 |
-
img_array = img_array / 255.0
|
| 37 |
return img_array
|
| 38 |
except Exception as e:
|
| 39 |
print(f"Error processing image: {e}", file=sys.stderr)
|
|
|
|
| 33 |
|
| 34 |
img_array = image.img_to_array(img)
|
| 35 |
img_array = np.expand_dims(img_array, axis=0)
|
| 36 |
+
#img_array = img_array / 255.0
|
| 37 |
return img_array
|
| 38 |
except Exception as e:
|
| 39 |
print(f"Error processing image: {e}", file=sys.stderr)
|