Update app.py
Browse files
app.py
CHANGED
@@ -113,7 +113,8 @@ def pipe_inference(
|
|
113 |
all_outputs = pipe.numpy_to_pil(np.asarray(output.reshape((num_samples,) + output.shape[-3:])))
|
114 |
return all_outputs
|
115 |
|
116 |
-
def resize_image(image, resolution):
|
|
|
117 |
h, w = image.shape
|
118 |
ratio = w/h
|
119 |
if ratio > 1 :
|
|
|
113 |
all_outputs = pipe.numpy_to_pil(np.asarray(output.reshape((num_samples,) + output.shape[-3:])))
|
114 |
return all_outputs
|
115 |
|
116 |
+
def resize_image(image, resolution):
|
117 |
+
print(image.shape)
|
118 |
h, w = image.shape
|
119 |
ratio = w/h
|
120 |
if ratio > 1 :
|