Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -189,8 +189,8 @@ def blur_im(img,bounds,target_lang,trans_lang):
|
|
189 |
im = cv2.resize(im, (1000,(int(1000*float(rato)))))
|
190 |
elif im_w < im_h:
|
191 |
rato=im_w/im_h
|
192 |
-
im = cv2.resize(im, (int(1000*float(rato)),1000)
|
193 |
-
|
194 |
im = cv2.resize(im,(1000,1000))
|
195 |
for bound in bounds:
|
196 |
if bound[2]>=0.3:
|
|
|
189 |
im = cv2.resize(im, (1000,(int(1000*float(rato)))))
|
190 |
elif im_w < im_h:
|
191 |
rato=im_w/im_h
|
192 |
+
im = cv2.resize(im, (int(1000*float(rato)),1000))
|
193 |
+
elif im_w == im_h:
|
194 |
im = cv2.resize(im,(1000,1000))
|
195 |
for bound in bounds:
|
196 |
if bound[2]>=0.3:
|