Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -4,7 +4,7 @@ Original code by Zenafey
|
|
4 |
"""
|
5 |
import gradio as gr
|
6 |
|
7 |
-
from engine import generate_sd, generate_sdxl, transform_sd, controlnet_sd,
|
8 |
from const import CMODELS, CMODULES, SAMPLER_LIST, SDXL_MODEL_LIST
|
9 |
|
10 |
|
@@ -166,6 +166,6 @@ with gr.Blocks() as demo:
|
|
166 |
with gr.Column():
|
167 |
image_output = gr.Image()
|
168 |
|
169 |
-
upscale_btn.click(
|
170 |
|
171 |
demo.launch(show_api=False)
|
|
|
4 |
"""
|
5 |
import gradio as gr
|
6 |
|
7 |
+
from engine import generate_sd, generate_sdxl, transform_sd, controlnet_sd, image_upscale, get_models
|
8 |
from const import CMODELS, CMODULES, SAMPLER_LIST, SDXL_MODEL_LIST
|
9 |
|
10 |
|
|
|
166 |
with gr.Column():
|
167 |
image_output = gr.Image()
|
168 |
|
169 |
+
upscale_btn.click(image_upscale, inputs=[image_input, scale_by], outputs=image_output)
|
170 |
|
171 |
demo.launch(show_api=False)
|