zenafey commited on
Commit
f84294b
1 Parent(s): 52c345e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
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, get_models
8
  from const import CMODELS, CMODULES, SAMPLER_LIST, SDXL_MODEL_LIST
9
 
10
 
@@ -166,4 +166,6 @@ with gr.Blocks() as demo:
166
  with gr.Column():
167
  image_output = gr.Image()
168
 
 
 
169
  demo.launch(show_api=False)
 
4
  """
5
  import gradio as gr
6
 
7
+ from engine import generate_sd, generate_sdxl, transform_sd, controlnet_sd, 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(upscale, inputs=[image_input, scale_by], outputs=image_output)
170
+
171
  demo.launch(show_api=False)