Update app.py
Browse files
app.py
CHANGED
|
@@ -78,7 +78,7 @@ def pipe_inference(
|
|
| 78 |
if not isinstance(image, np.ndarray):
|
| 79 |
image = np.array(image)
|
| 80 |
|
| 81 |
-
processed_image = resize_image(image, resolution)
|
| 82 |
|
| 83 |
if not is_canny:
|
| 84 |
resized_image, processed_image = preprocess_canny(processed_image, resolution)
|
|
|
|
| 78 |
if not isinstance(image, np.ndarray):
|
| 79 |
image = np.array(image)
|
| 80 |
|
| 81 |
+
processed_image = resize_image(image, resolution) #-> PIL
|
| 82 |
|
| 83 |
if not is_canny:
|
| 84 |
resized_image, processed_image = preprocess_canny(processed_image, resolution)
|