This commit is contained in:
hlky 2022-08-31 14:34:50 +01:00
parent 341c13a4de
commit 7754880f55
No known key found for this signature in database
GPG Key ID: 55A99F1E80D907D5
2 changed files with 7 additions and 2 deletions

View File

@ -17,3 +17,8 @@ input[type=number]:disabled { -moz-appearance: textfield; }
#generate, #img2img_mask_btn, #img2img_edit_btn { #generate, #img2img_mask_btn, #img2img_edit_btn {
align-self: stretch; align-self: stretch;
} }
#gan_image {
width: 512px;
height: auto;
}

View File

@ -311,7 +311,7 @@ def draw_gradio_ui(opt, img2img=lambda x: x, txt2img=lambda x: x, txt2img_defaul
value=gfpgan_defaults['strength']) value=gfpgan_defaults['strength'])
gfpgan_btn = gr.Button("Generate", variant="primary") gfpgan_btn = gr.Button("Generate", variant="primary")
with gr.Column(): with gr.Column():
gfpgan_output = gr.Image(label="Output") gfpgan_output = gr.Image(label="Output", elem_id='gan_image')
gfpgan_btn.click( gfpgan_btn.click(
run_GFPGAN, run_GFPGAN,
[gfpgan_source, gfpgan_strength], [gfpgan_source, gfpgan_strength],
@ -328,7 +328,7 @@ def draw_gradio_ui(opt, img2img=lambda x: x, txt2img=lambda x: x, txt2img_defaul
value='RealESRGAN_x4plus') value='RealESRGAN_x4plus')
realesrgan_btn = gr.Button("Generate") realesrgan_btn = gr.Button("Generate")
with gr.Column(): with gr.Column():
realesrgan_output = gr.Image(label="Output") realesrgan_output = gr.Image(label="Output", elem_id='gan_image')
realesrgan_btn.click( realesrgan_btn.click(
run_RealESRGAN, run_RealESRGAN,
[realesrgan_source, realesrgan_model_name], [realesrgan_source, realesrgan_model_name],