remove size selector

This commit is contained in:
Qing
2023-03-25 14:11:00 +08:00
parent 1a8754e314
commit b12c3708c2
4 changed files with 1 additions and 98 deletions

View File

@@ -211,11 +211,7 @@ def process():
interpolation = cv2.INTER_CUBIC
form = request.form
size_limit: Union[int, str] = form.get("sizeLimit", "1080")
if size_limit == "Original":
size_limit = max(image.shape)
else:
size_limit = int(size_limit)
size_limit = max(image.shape)
if "paintByExampleImage" in input:
paint_by_example_example_image, _ = load_img(