zenafey commited on
Commit
e3d2f9e
1 Parent(s): 2285a8a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -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
 
@@ -157,4 +157,13 @@ with gr.Blocks() as demo:
157
  negative_prompt, steps, cfg_scale, seed, sampler, width, height],
158
  outputs=image_output)
159
 
 
 
 
 
 
 
 
 
 
160
  demo.launch(show_api=False)
 
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
 
 
157
  negative_prompt, steps, cfg_scale, seed, sampler, width, height],
158
  outputs=image_output)
159
 
160
+ with gr.Tab("/upscale"):
161
+ with gr.Row():
162
+ with gr.Column():
163
+ image_input = gr.Image(type='filepath')
164
+ scale_by = gr.Slider(label="Scale by", minimum=2, maximum=4, step=2)
165
+ upscale_btn = gr.Button("Upscale!")
166
+ with gr.Column():
167
+ image_output = gr.Image()
168
+
169
  demo.launch(show_api=False)