use InputAccordion from 1.6.0
parent
e37251c595
commit
4e5b40e9a4
|
|
@ -1,6 +1,6 @@
|
||||||
import os
|
import os
|
||||||
|
|
||||||
from modules import scripts_postprocessing, devices, scripts
|
from modules import scripts_postprocessing, devices, scripts, ui_components
|
||||||
import gradio as gr
|
import gradio as gr
|
||||||
|
|
||||||
from modules.ui_components import FormRow
|
from modules.ui_components import FormRow
|
||||||
|
|
@ -171,13 +171,9 @@ class ScriptPostprocessingUpscale(scripts_postprocessing.ScriptPostprocessing):
|
||||||
model = None
|
model = None
|
||||||
|
|
||||||
def ui(self):
|
def ui(self):
|
||||||
with FormRow():
|
with ui_components.InputAccordion(False, label="Pixelize") as enable:
|
||||||
with gr.Column():
|
with gr.Row():
|
||||||
with FormRow():
|
upscale_after = gr.Checkbox(False, label="Keep resolution")
|
||||||
enable = gr.Checkbox(False, label="Enable pixelization")
|
|
||||||
upscale_after = gr.Checkbox(False, label="Keep resolution")
|
|
||||||
|
|
||||||
with gr.Column():
|
|
||||||
pixel_size = gr.Slider(minimum=1, maximum=16, step=1, label="Pixel size", value=4, elem_id="pixelization_pixel_size")
|
pixel_size = gr.Slider(minimum=1, maximum=16, step=1, label="Pixel size", value=4, elem_id="pixelization_pixel_size")
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue