GiorgioV commited on
Commit
378beb3
·
verified ·
1 Parent(s): e9137c8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -223,8 +223,8 @@ def infer(
223
  @spaces.GPU(duration=120)
224
  def infer_example(input_image, prompt, lora_adapter):
225
  input_pil = input_image.convert("RGB")
226
- guidance_scale = 1.0
227
- steps = 10
228
  result, seed = infer(input_pil, prompt, lora_adapter, 0, True, guidance_scale, steps)
229
  return result, seed
230
 
@@ -266,8 +266,8 @@ with gr.Blocks(css=css, theme=steel_blue_theme) as demo:
266
  with gr.Accordion("Advanced Settings", open=False, visible=False):
267
  seed = gr.Slider(label="Seed", minimum=0, maximum=MAX_SEED, step=1, value=0)
268
  randomize_seed = gr.Checkbox(label="Randomize Seed", value=True)
269
- guidance_scale = gr.Slider(label="Guidance Scale", minimum=1.0, maximum=10.0, step=0.1, value=1.0)
270
- steps = gr.Slider(label="Inference Steps", minimum=1, maximum=50, step=1, value=10)
271
 
272
  gr.Examples(
273
  examples=[
 
223
  @spaces.GPU(duration=120)
224
  def infer_example(input_image, prompt, lora_adapter):
225
  input_pil = input_image.convert("RGB")
226
+ guidance_scale = 1.5
227
+ steps = 5
228
  result, seed = infer(input_pil, prompt, lora_adapter, 0, True, guidance_scale, steps)
229
  return result, seed
230
 
 
266
  with gr.Accordion("Advanced Settings", open=False, visible=False):
267
  seed = gr.Slider(label="Seed", minimum=0, maximum=MAX_SEED, step=1, value=0)
268
  randomize_seed = gr.Checkbox(label="Randomize Seed", value=True)
269
+ guidance_scale = gr.Slider(label="Guidance Scale", minimum=1.0, maximum=10.0, step=0.1, value=1.5)
270
+ steps = gr.Slider(label="Inference Steps", minimum=1, maximum=50, step=1, value=5)
271
 
272
  gr.Examples(
273
  examples=[