Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -5,7 +5,7 @@ import requests
|
|
5 |
import uuid
|
6 |
import io
|
7 |
import base64
|
8 |
-
|
9 |
#import torch
|
10 |
#from diffusers import AutoPipelineForImage2Image
|
11 |
#from diffusers.utils import make_image_grid, load_image
|
@@ -315,7 +315,7 @@ def load_im(img):
|
|
315 |
# Cropped image of above dimension
|
316 |
# (It will not change original image)
|
317 |
im1 = im.crop((left, top, right, bottom))
|
318 |
-
im1 = im1.resize(newsize)
|
319 |
|
320 |
im_box.append(im1)
|
321 |
w+=new_w
|
|
|
5 |
import uuid
|
6 |
import io
|
7 |
import base64
|
8 |
+
import cv2
|
9 |
#import torch
|
10 |
#from diffusers import AutoPipelineForImage2Image
|
11 |
#from diffusers.utils import make_image_grid, load_image
|
|
|
315 |
# Cropped image of above dimension
|
316 |
# (It will not change original image)
|
317 |
im1 = im.crop((left, top, right, bottom))
|
318 |
+
#im1 = im1.resize(newsize)
|
319 |
|
320 |
im_box.append(im1)
|
321 |
w+=new_w
|