Lifeinhockey commited on
Commit
e6ca5c2
·
verified ·
1 Parent(s): b872418

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +17 -17
app.py CHANGED
@@ -73,7 +73,7 @@ def infer(
73
  height=512,
74
  num_inference_steps=20,
75
  model_id="stable-diffusion-v1-5/stable-diffusion-v1-5",
76
- seed=4,
77
  guidance_scale=7.5,
78
  lora_scale=0.5,
79
  progress=gr.Progress(track_tqdm=True)
@@ -179,30 +179,30 @@ with gr.Blocks(css=css) as demo:
179
  )
180
 
181
  with gr.Row():
182
- seed = gr.Slider(
183
- label="Seed",
184
- minimum=0,
185
- maximum=MAX_SEED,
186
- step=1,
187
- value=0,
188
  )
189
 
190
  with gr.Row():
191
  guidance_scale = gr.Slider(
192
- label="Guidance scale",
193
- minimum=0.0,
194
- maximum=10.0,
195
- step=0.1,
196
- value=7.5, # Replace with defaults that work for your model
197
  )
198
 
199
  with gr.Row():
200
  num_inference_steps = gr.Slider(
201
- label="Number of inference steps",
202
- minimum=1,
203
- maximum=100,
204
- step=1,
205
- value=30, # Replace with defaults that work for your model
206
  )
207
 
208
  with gr.Accordion("Advanced Settings", open=False):
 
73
  height=512,
74
  num_inference_steps=20,
75
  model_id="stable-diffusion-v1-5/stable-diffusion-v1-5",
76
+ seed=42,
77
  guidance_scale=7.5,
78
  lora_scale=0.5,
79
  progress=gr.Progress(track_tqdm=True)
 
179
  )
180
 
181
  with gr.Row():
182
+ seed = gr.Number(
183
+ label="Seed",
184
+ minimum=0,
185
+ maximum=MAX_SEED,
186
+ step=1,
187
+ value=42,
188
  )
189
 
190
  with gr.Row():
191
  guidance_scale = gr.Slider(
192
+ label="Guidance scale",
193
+ minimum=0.0,
194
+ maximum=10.0,
195
+ step=0.1,
196
+ value=7.5, # Replace with defaults that work for your model
197
  )
198
 
199
  with gr.Row():
200
  num_inference_steps = gr.Slider(
201
+ label="Number of inference steps",
202
+ minimum=1,
203
+ maximum=100,
204
+ step=1,
205
+ value=30, # Replace with defaults that work for your model
206
  )
207
 
208
  with gr.Accordion("Advanced Settings", open=False):