Skip to content

Commit

Permalink
fix(api): use correct params for default outpainting borders (#345)
Browse files Browse the repository at this point in the history
  • Loading branch information
ssube committed Apr 21, 2023
1 parent b85a8aa commit c7aea34
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions api/onnx_web/server/params.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit c7aea34

Please sign in to comment.