mirror of
https://github.com/altoiddealer/--sd-webui-ar-plusplus.git
synced 2026-05-01 03:31:38 +00:00
Fix Gradio warning
This commit is contained in:
@@ -445,17 +445,13 @@ class AspectRatioScript(scripts.Script):
|
|||||||
|
|
||||||
with gr.Row():
|
with gr.Row():
|
||||||
# Calculate and Apply buttons
|
# Calculate and Apply buttons
|
||||||
arc_calc_height = gr.Button(value="Calculate Height").style(
|
arc_calc_height = gr.Button(value="Calculate Height", scale=1)
|
||||||
full_width=False
|
|
||||||
)
|
|
||||||
arc_calc_height.click(
|
arc_calc_height.click(
|
||||||
lambda w2, w1, h1: (solve_aspect_ratio(w2, 0, w1, h1)),
|
lambda w2, w1, h1: (solve_aspect_ratio(w2, 0, w1, h1)),
|
||||||
inputs=[arc_desired_width, arc_width1, arc_height1],
|
inputs=[arc_desired_width, arc_width1, arc_height1],
|
||||||
outputs=[arc_desired_height],
|
outputs=[arc_desired_height],
|
||||||
)
|
)
|
||||||
arc_calc_width = gr.Button(value="Calculate Width").style(
|
arc_calc_width = gr.Button(value="Calculate Width", scale=1)
|
||||||
full_width=False
|
|
||||||
)
|
|
||||||
arc_calc_width.click(
|
arc_calc_width.click(
|
||||||
lambda h2, w1, h1: (solve_aspect_ratio(0, h2, w1, h1)),
|
lambda h2, w1, h1: (solve_aspect_ratio(0, h2, w1, h1)),
|
||||||
inputs=[arc_desired_height, arc_width1, arc_height1],
|
inputs=[arc_desired_height, arc_width1, arc_height1],
|
||||||
|
|||||||
Reference in New Issue
Block a user