From c7aea34b28d18e64a38fbc13117730fde79d748f Mon Sep 17 00:00:00 2001 From: Sean Sube Date: Thu, 20 Apr 2023 22:33:18 -0500 Subject: [PATCH] fix(api): use correct params for default outpainting borders (#345) --- api/onnx_web/server/params.py | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/api/onnx_web/server/params.py b/api/onnx_web/server/params.py index a2a8edc3..ca3a65d3 100644 --- a/api/onnx_web/server/params.py +++ b/api/onnx_web/server/params.py @@ -153,30 +153,30 @@ def border_from_request() -> Border: left = get_and_clamp_int( request.args, "left", - get_config_value("width"), - get_config_value("width", "max"), - get_config_value("width", "min"), + get_config_value("left"), + get_config_value("left", "max"), + get_config_value("left", "min"), ) right = get_and_clamp_int( request.args, "right", - get_config_value("width"), - get_config_value("width", "max"), - get_config_value("width", "min"), + get_config_value("right"), + get_config_value("right", "max"), + get_config_value("right", "min"), ) top = get_and_clamp_int( request.args, "top", - get_config_value("width"), - get_config_value("height", "max"), - get_config_value("height", "min"), + get_config_value("top"), + get_config_value("top", "max"), + get_config_value("top", "min"), ) bottom = get_and_clamp_int( request.args, "bottom", - get_config_value("width"), - get_config_value("height", "max"), - get_config_value("height", "min"), + get_config_value("bottom"), + get_config_value("bottom", "max"), + get_config_value("bottom", "min"), ) return Border(left, right, top, bottom)