Baptlem commited on
Commit
68696f0
1 Parent(s): 788a013

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
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 :