Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
|
@@ -684,7 +684,7 @@ with gr.Blocks(theme="Nymbo/Nymbo_Theme", css=css, delete_cache=(60, 3600)) as a
|
|
| 684 |
randomize_seed = gr.Checkbox(True, label="Randomize seed")
|
| 685 |
seed = gr.Slider(label="Seed", minimum=0, maximum=MAX_SEED, step=1, value=0, randomize=True)
|
| 686 |
|
| 687 |
-
|
| 688 |
with gr.Row():
|
| 689 |
upscale_button = gr.Button("Upscale")
|
| 690 |
|
|
@@ -726,8 +726,6 @@ with gr.Blocks(theme="Nymbo/Nymbo_Theme", css=css, delete_cache=(60, 3600)) as a
|
|
| 726 |
upscale_result = gr.Image(label="Upscaled Image", type="pil")
|
| 727 |
upscale_seed_output = gr.Number(label="Seed Used", precision=0)
|
| 728 |
|
| 729 |
-
|
| 730 |
-
|
| 731 |
gallery.select(
|
| 732 |
update_selection,
|
| 733 |
inputs=[selected_indices, loras_state, width, height],
|
|
@@ -771,18 +769,15 @@ with gr.Blocks(theme="Nymbo/Nymbo_Theme", css=css, delete_cache=(60, 3600)) as a
|
|
| 771 |
)
|
| 772 |
|
| 773 |
upscale_button.click(
|
| 774 |
-
|
| 775 |
inputs=[
|
|
|
|
| 776 |
upscale_seed,
|
| 777 |
upscale_randomize_seed,
|
| 778 |
-
upscale_input,
|
| 779 |
upscale_steps,
|
| 780 |
upscale_factor,
|
| 781 |
controlnet_conditioning_scale,
|
| 782 |
],
|
| 783 |
-
outputs=[upscale_result, upscale_seed_output],
|
| 784 |
-
)
|
| 785 |
-
|
| 786 |
outputs=[
|
| 787 |
upscale_input,
|
| 788 |
upscale_seed,
|
|
@@ -806,5 +801,4 @@ with gr.Blocks(theme="Nymbo/Nymbo_Theme", css=css, delete_cache=(60, 3600)) as a
|
|
| 806 |
|
| 807 |
if __name__ == "__main__":
|
| 808 |
app.queue(max_size=20)
|
| 809 |
-
app.launch(debug=True)
|
| 810 |
-
|
|
|
|
| 684 |
randomize_seed = gr.Checkbox(True, label="Randomize seed")
|
| 685 |
seed = gr.Slider(label="Seed", minimum=0, maximum=MAX_SEED, step=1, value=0, randomize=True)
|
| 686 |
|
| 687 |
+
# 업스케일 관련 UI 추가
|
| 688 |
with gr.Row():
|
| 689 |
upscale_button = gr.Button("Upscale")
|
| 690 |
|
|
|
|
| 726 |
upscale_result = gr.Image(label="Upscaled Image", type="pil")
|
| 727 |
upscale_seed_output = gr.Number(label="Seed Used", precision=0)
|
| 728 |
|
|
|
|
|
|
|
| 729 |
gallery.select(
|
| 730 |
update_selection,
|
| 731 |
inputs=[selected_indices, loras_state, width, height],
|
|
|
|
| 769 |
)
|
| 770 |
|
| 771 |
upscale_button.click(
|
| 772 |
+
check_upscale_input,
|
| 773 |
inputs=[
|
| 774 |
+
upscale_input,
|
| 775 |
upscale_seed,
|
| 776 |
upscale_randomize_seed,
|
|
|
|
| 777 |
upscale_steps,
|
| 778 |
upscale_factor,
|
| 779 |
controlnet_conditioning_scale,
|
| 780 |
],
|
|
|
|
|
|
|
|
|
|
| 781 |
outputs=[
|
| 782 |
upscale_input,
|
| 783 |
upscale_seed,
|
|
|
|
| 801 |
|
| 802 |
if __name__ == "__main__":
|
| 803 |
app.queue(max_size=20)
|
| 804 |
+
app.launch(debug=True)
|
|
|