Skip to content
This repository has been archived by the owner on Sep 7, 2022. It is now read-only.

Commit

Permalink
🔄 Synced local 'frontend/frontend.py' with remote 'frontend/frontend.py'
Browse files Browse the repository at this point in the history
  • Loading branch information
hlky authored and hlky committed Aug 31, 2022
1 parent 4d1ff97 commit 276795b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions frontend/frontend.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def draw_gradio_ui(opt, img2img=lambda x: x, txt2img=lambda x: x, txt2img_defaul
value=txt2img_defaults["height"])
txt2img_cfg = gr.Slider(minimum=-40.0, maximum=30.0, step=0.5,
label='Classifier Free Guidance Scale (how strongly the image should follow the prompt)',
value=txt2img_defaults['cfg_scale'])
value=txt2img_defaults['cfg_scale'], elem_id='cfg_slider')
txt2img_seed = gr.Textbox(label="Seed (blank to randomize)", lines=1, max_lines=1,
value=txt2img_defaults["seed"])
txt2img_batch_count = gr.Slider(minimum=1, maximum=250, step=1,
Expand Down Expand Up @@ -195,7 +195,7 @@ def draw_gradio_ui(opt, img2img=lambda x: x, txt2img=lambda x: x, txt2img_defaul

img2img_cfg = gr.Slider(minimum=-40.0, maximum=30.0, step=0.5,
label='Classifier Free Guidance Scale (how strongly the image should follow the prompt)',
value=img2img_defaults['cfg_scale'])
value=img2img_defaults['cfg_scale'], elem_id='cfg_slider')

img2img_seed = gr.Textbox(label="Seed (blank to randomize)", lines=1, max_lines=1,
value=img2img_defaults["seed"])
Expand Down Expand Up @@ -311,7 +311,7 @@ def img2img_submit_params():
value=gfpgan_defaults['strength'])
gfpgan_btn = gr.Button("Generate", variant="primary")
with gr.Column():
gfpgan_output = gr.Image(label="Output")
gfpgan_output = gr.Image(label="Output", elem_id='gan_image')
gfpgan_btn.click(
run_GFPGAN,
[gfpgan_source, gfpgan_strength],
Expand All @@ -328,7 +328,7 @@ def img2img_submit_params():
value='RealESRGAN_x4plus')
realesrgan_btn = gr.Button("Generate")
with gr.Column():
realesrgan_output = gr.Image(label="Output")
realesrgan_output = gr.Image(label="Output", elem_id='gan_image')
realesrgan_btn.click(
run_RealESRGAN,
[realesrgan_source, realesrgan_model_name],
Expand Down

0 comments on commit 276795b

Please sign in to comment.