Commit 1b8c4873 authored by novelailab's avatar novelailab

change res limit

parent f30be23f
......@@ -104,7 +104,6 @@ def init_config_model():
#exit gunicorn
sys.exit(4)
config.model = model
# Mark that our model is loaded.
......
......@@ -57,8 +57,8 @@ def sanitize_input(request):
if request.dynamic_threshold is not None and request.dynamic_threshold < 0:
return False, "dynamic_threshold shouldn't be negative"
if request.width * request.height >= 2048*512:
return False, "width and height must be less than 2048*512"
if request.width * request.height >= 1024*1025:
return False, "width and height must be less than 1024*1025"
return True, request
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment