Hanxiao Xiang commited on
Commit
49f5d1a
1 Parent(s): 874367d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -61,8 +61,8 @@ def get_access_token(refatch=False) -> str:
61
  return access_token
62
 
63
 
64
- def resize_image(img, max_length=2048, min_length=50) -> Tuple[np.ndarray, bool]:
65
- """Ensure that the longest side is shorter than 2048px and the shortest side is longer than 50px.
66
  :param img: 前端传入的图片
67
  :param max_length: 最长边像素
68
  :param min_length: 最短边像素
 
61
  return access_token
62
 
63
 
64
+ def resize_image(img, max_length=524, min_length=50) -> Tuple[np.ndarray, bool]:
65
+ """Ensure that the longest side is shorter than 524px and the shortest side is longer than 50px.
66
  :param img: 前端传入的图片
67
  :param max_length: 最长边像素
68
  :param min_length: 最短边像素