Spaces:
doevent
/
Running on Zero

ohayonguy commited on
Commit
7dcd008
·
1 Parent(s): 420aa1e

improved interface

Browse files
Files changed (1) hide show
  1. app.py +14 -18
app.py CHANGED
@@ -261,25 +261,21 @@ with gr.Blocks(css=css, theme=gr.themes.Soft()) as demo:
261
  with gr.Row():
262
  with gr.Column(scale=1):
263
  with gr.Row():
264
- with gr.Column(scale=1):
265
- num_inference_steps = gr.Slider(
266
- label="Number of Inference Steps", minimum=1, maximum=200, step=1, value=25,
267
- )
268
- with gr.Column(scale=1):
269
- upscale_factor = gr.Slider(
270
- label="Scale factor. Applicable only to non-aligned face images. This will upscale the entire image.",
271
- minimum=1,
272
- maximum=4,
273
- step=0.1,
274
- value=1,
275
- )
276
- with gr.Column(scale=1):
277
- seed = gr.Slider(label="Seed", minimum=0, maximum=MAX_SEED, step=1, value=42)
278
  with gr.Row():
279
- with gr.Column(scale=1):
280
- randomize_seed = gr.Checkbox(label="Randomize seed", value=True)
281
- with gr.Column(scale=1):
282
- aligned = gr.Checkbox(label="The input is an aligned face image.", value=False)
283
  with gr.Row():
284
  with gr.Column(scale=1):
285
  run_button = gr.Button(value="Submit", variant="primary")
 
261
  with gr.Row():
262
  with gr.Column(scale=1):
263
  with gr.Row():
264
+ num_inference_steps = gr.Slider(
265
+ label="Number of Inference Steps", minimum=1, maximum=200, step=1, value=25, scale=1
266
+ )
267
+ upscale_factor = gr.Slider(
268
+ label="Scale factor. Applicable only to non-aligned face images. This will upscale the entire image.",
269
+ minimum=1,
270
+ maximum=4,
271
+ step=0.1,
272
+ value=1,
273
+ scale=1
274
+ )
275
+ seed = gr.Slider(label="Seed", minimum=0, maximum=MAX_SEED, step=1, value=42, scale=1)
 
 
276
  with gr.Row():
277
+ randomize_seed = gr.Checkbox(label="Randomize seed", value=True, scale=1)
278
+ aligned = gr.Checkbox(label="The input is an aligned face image.", value=False, scale=1)
 
 
279
  with gr.Row():
280
  with gr.Column(scale=1):
281
  run_button = gr.Button(value="Submit", variant="primary")