ktrndy commited on
Commit
8b2fd67
·
verified ·
1 Parent(s): 17091ee

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -28,7 +28,7 @@ def infer(
28
  seed=42,
29
  guidance_scale=7.0,
30
  lora_scale=1.0,
31
- num_inference_steps=30,
32
  progress=gr.Progress(track_tqdm=True),
33
  ):
34
  generator = torch.Generator(device).manual_seed(seed)
@@ -137,7 +137,7 @@ with gr.Blocks(css=css, fill_height=True) as demo:
137
  minimum=256,
138
  maximum=MAX_IMAGE_SIZE,
139
  step=32,
140
- value=1024, # Replace with defaults that work for your model
141
  )
142
 
143
  height = gr.Slider(
@@ -145,7 +145,7 @@ with gr.Blocks(css=css, fill_height=True) as demo:
145
  minimum=256,
146
  maximum=MAX_IMAGE_SIZE,
147
  step=32,
148
- value=1024, # Replace with defaults that work for your model
149
  )
150
 
151
  run_button = gr.Button("Run", scale=0, variant="primary")
 
28
  seed=42,
29
  guidance_scale=7.0,
30
  lora_scale=1.0,
31
+ num_inference_steps=20,
32
  progress=gr.Progress(track_tqdm=True),
33
  ):
34
  generator = torch.Generator(device).manual_seed(seed)
 
137
  minimum=256,
138
  maximum=MAX_IMAGE_SIZE,
139
  step=32,
140
+ value=512, # Replace with defaults that work for your model
141
  )
142
 
143
  height = gr.Slider(
 
145
  minimum=256,
146
  maximum=MAX_IMAGE_SIZE,
147
  step=32,
148
+ value=512, # Replace with defaults that work for your model
149
  )
150
 
151
  run_button = gr.Button("Run", scale=0, variant="primary")