DigiP-AI commited on
Commit
d9a533d
·
verified ·
1 Parent(s): 34e5774

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -6
app.py CHANGED
@@ -164,10 +164,9 @@ with gr.Blocks(theme=theme, css=css, elem_id="app-container") as app:
164
  with gr.Row():
165
  width = gr.Slider(label="Width", value=1024, minimum=64, maximum=1216, step=32)
166
  height = gr.Slider(label="Height", value=1024, minimum=64, maximum=1216, step=32)
167
- steps = gr.Slider(label="Sampling steps", value=28, minimum=1, maximum=100, step=1)
168
  cfg = gr.Slider(label="CFG Scale", value=3.5, minimum=1, maximum=20, step=0.5)
169
- method = gr.Radio(label="Sampling method", value="DPM++ 2M Karras", choices=["DPM++ 2M Karras", "DPM++ SDE Karras", "DEIS", "LMS", "DPM Adaptive", "DPM++ 2M", "DPM++ S", "DPM++ SDE", "DPM Fast", "Euler", "Euler CFG PP", "Euler a", "Euler+beta", "Heun", "Heun PP2", "DDIM", "PLMS", "UniPC", "UniPC BH2"])
170
- strength = gr.Slider(label="Strength", value=0.7, minimum=0, maximum=1, step=0.001)
171
  strength = gr.Slider(label="Strength", value=0.7, minimum=0, maximum=1, step=0.001)
172
  seed = gr.Slider(label="Seed", value=-1, minimum=-1, maximum=1000000000, step=1)
173
 
@@ -197,9 +196,7 @@ with gr.Blocks(theme=theme, css=css, elem_id="app-container") as app:
197
 
198
  text_button.click(query, inputs=[custom_lora, text_prompt, negative_prompt, steps, cfg, method, seed, strength, width, height], outputs=[image_output, seed_output])
199
 
200
-
201
-
202
- with gr.Tab("Image Upscaler"):
203
  with gr.Row():
204
  with gr.Column():
205
  def upscale_image(input_image, radio_input):
 
164
  with gr.Row():
165
  width = gr.Slider(label="Width", value=1024, minimum=64, maximum=1216, step=32)
166
  height = gr.Slider(label="Height", value=1024, minimum=64, maximum=1216, step=32)
167
+ steps = gr.Slider(label="Sampling steps", value=50, minimum=1, maximum=100, step=1)
168
  cfg = gr.Slider(label="CFG Scale", value=3.5, minimum=1, maximum=20, step=0.5)
169
+ method = gr.Radio(label="Sampling method", value="DPM++ 2M Karras", choices=["DPM++ 2M Karras", "DPM++ SDE Karras", "DEIS", "LMS", "DPM Adaptive", "DPM++ 2M", "DPM++ S", "DPM++ SDE", "DDPM" "DPM Fast", "Euler", "Euler CFG PP", "Euler a", "Euler+beta", "Heun", "Heun PP2", "DDIM", "PLMS", "UniPC", "UniPC BH2"])
 
170
  strength = gr.Slider(label="Strength", value=0.7, minimum=0, maximum=1, step=0.001)
171
  seed = gr.Slider(label="Seed", value=-1, minimum=-1, maximum=1000000000, step=1)
172
 
 
196
 
197
  text_button.click(query, inputs=[custom_lora, text_prompt, negative_prompt, steps, cfg, method, seed, strength, width, height], outputs=[image_output, seed_output])
198
 
199
+ with gr.Tab("Image Upscaler"):
 
 
200
  with gr.Row():
201
  with gr.Column():
202
  def upscale_image(input_image, radio_input):