Spaces:
Sleeping
Sleeping
Commit ·
e9ef9c8
1
Parent(s): 77c7089
fixed bug
Browse files
src/sdgen/ui/layout.py
CHANGED
|
@@ -216,11 +216,11 @@ def build_ui(txt2img_pipes: dict, img2img_pipes: dict) -> gr.Blocks:
|
|
| 216 |
)
|
| 217 |
|
| 218 |
txt_controls = build_txt2img_tab(
|
| 219 |
-
make_txt2img_handler(model_choice, txt2img_pipes),
|
| 220 |
)
|
| 221 |
|
| 222 |
img_controls = build_img2img_tab(
|
| 223 |
-
make_img2img_handler(model_choice, img2img_pipes),
|
| 224 |
)
|
| 225 |
|
| 226 |
build_upscaler_tab(
|
|
|
|
| 216 |
)
|
| 217 |
|
| 218 |
txt_controls = build_txt2img_tab(
|
| 219 |
+
make_txt2img_handler(model_choice.value, txt2img_pipes),
|
| 220 |
)
|
| 221 |
|
| 222 |
img_controls = build_img2img_tab(
|
| 223 |
+
make_img2img_handler(model_choice.value, img2img_pipes),
|
| 224 |
)
|
| 225 |
|
| 226 |
build_upscaler_tab(
|
src/sdgen/ui/tabs/img2img_tab.py
CHANGED
|
@@ -33,8 +33,7 @@ def build_img2img_tab(handler: Callable[..., Tuple[Any, dict]]) -> Img2ImgContro
|
|
| 33 |
"""
|
| 34 |
with gr.Tab("Image → Image"):
|
| 35 |
with gr.Row():
|
| 36 |
-
|
| 37 |
-
with gr.Column(scale=1):
|
| 38 |
input_image = gr.Image(
|
| 39 |
label="Input Image",
|
| 40 |
type="numpy",
|
|
@@ -93,8 +92,7 @@ the prompt more strictly. "
|
|
| 93 |
|
| 94 |
generate_button = gr.Button("Generate")
|
| 95 |
|
| 96 |
-
|
| 97 |
-
with gr.Column(scale=2):
|
| 98 |
out_image = gr.Image(
|
| 99 |
label="Output",
|
| 100 |
type="pil",
|
|
|
|
| 33 |
"""
|
| 34 |
with gr.Tab("Image → Image"):
|
| 35 |
with gr.Row():
|
| 36 |
+
with gr.Column():
|
|
|
|
| 37 |
input_image = gr.Image(
|
| 38 |
label="Input Image",
|
| 39 |
type="numpy",
|
|
|
|
| 92 |
|
| 93 |
generate_button = gr.Button("Generate")
|
| 94 |
|
| 95 |
+
with gr.Column():
|
|
|
|
| 96 |
out_image = gr.Image(
|
| 97 |
label="Output",
|
| 98 |
type="pil",
|