prithivMLmods commited on
Commit
5c250d6
·
verified ·
1 Parent(s): 3bf0e48

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -184,7 +184,7 @@ def infer_example(input_image_path, prompt, lora_adapter):
184
  width, height = update_dimensions_on_upload(input_pil)
185
  # Set reasonable default values for example inference
186
  guidance_scale = 4.0
187
- steps = 25
188
  # Call the main infer function
189
  result, seed = infer(input_pil, prompt, lora_adapter, 0, True, guidance_scale, steps, width, height)
190
  return result, seed
@@ -225,7 +225,7 @@ with gr.Blocks(css=css, theme=steel_blue_theme) as demo:
225
  seed = gr.Slider(label="Seed", minimum=0, maximum=MAX_SEED, step=1, value=0)
226
  randomize_seed = gr.Checkbox(label="Randomize Seed", value=True)
227
  guidance_scale = gr.Slider(label="Guidance Scale", minimum=1.0, maximum=10.0, step=0.1, value=4.0)
228
- steps = gr.Slider(label="Inference Steps", minimum=1, maximum=50, step=1, value=25)
229
  # Hidden sliders to hold image dimensions
230
  height = gr.Slider(label="Height", minimum=256, maximum=1024, step=8, value=1024, visible=False)
231
  width = gr.Slider(label="Width", minimum=256, maximum=1024, step=8, value=1024, visible=False)
 
184
  width, height = update_dimensions_on_upload(input_pil)
185
  # Set reasonable default values for example inference
186
  guidance_scale = 4.0
187
+ steps = 4
188
  # Call the main infer function
189
  result, seed = infer(input_pil, prompt, lora_adapter, 0, True, guidance_scale, steps, width, height)
190
  return result, seed
 
225
  seed = gr.Slider(label="Seed", minimum=0, maximum=MAX_SEED, step=1, value=0)
226
  randomize_seed = gr.Checkbox(label="Randomize Seed", value=True)
227
  guidance_scale = gr.Slider(label="Guidance Scale", minimum=1.0, maximum=10.0, step=0.1, value=4.0)
228
+ steps = gr.Slider(label="Inference Steps", minimum=1, maximum=50, step=1, value=4)
229
  # Hidden sliders to hold image dimensions
230
  height = gr.Slider(label="Height", minimum=256, maximum=1024, step=8, value=1024, visible=False)
231
  width = gr.Slider(label="Width", minimum=256, maximum=1024, step=8, value=1024, visible=False)