Spaces:
doevent
/
Running on Zero

ohayonguy commited on
Commit
c64779b
·
1 Parent(s): aa95a62

improved interface

Browse files
Files changed (1) hide show
  1. app.py +27 -30
app.py CHANGED
@@ -253,37 +253,34 @@ with gr.Blocks(css=css, theme=gr.themes.Soft()) as demo:
253
  gr.HTML(intro)
254
  gr.Markdown(markdown_top)
255
 
256
- with gr.Row():
257
- with gr.Column(scale=1):
258
- with gr.Row():
259
- input_im = gr.Image(label="Input", type="filepath", show_label=True)
260
- with gr.Row():
261
- with gr.Column(scale=1):
262
- run_button = gr.Button(value="Submit", variant="primary")
263
- with gr.Column(scale=1):
264
- clear_button = gr.ClearButton(value="Clear")
265
- with gr.Column(scale=1):
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
266
  result = gr.Image(label="Output", type="numpy", show_label=True, format="png")
267
- with gr.Row():
268
- with gr.Column(scale=1):
269
- with gr.Row():
270
- num_inference_steps = gr.Slider(
271
- label="Number of Inference Steps", minimum=1, maximum=200, step=1, value=25, scale=1
272
- )
273
- upscale_factor = gr.Slider(
274
- label="Scale factor (applicable to non-aligned face images)",
275
- minimum=1,
276
- maximum=4,
277
- step=0.1,
278
- value=1,
279
- scale=1
280
- )
281
- seed = gr.Slider(label="Seed", minimum=0, maximum=MAX_SEED, step=1, value=42, scale=1)
282
- with gr.Row():
283
- randomize_seed = gr.Checkbox(label="Randomize seed", value=True, scale=1)
284
- aligned = gr.Checkbox(label="The input is an aligned face image", value=False, scale=1)
285
-
286
- with gr.Column(scale=1):
287
  gallery = gr.Gallery(
288
  label="Restored faces gallery", type="numpy", show_label=True, format="png"
289
  )
 
253
  gr.HTML(intro)
254
  gr.Markdown(markdown_top)
255
 
256
+ with gr.Column(scale=1):
257
+ with gr.Row():
258
+ input_im = gr.Image(label="Input", type="filepath", show_label=True)
259
+ with gr.Row():
260
+ num_inference_steps = gr.Slider(
261
+ label="Number of Inference Steps", minimum=1, maximum=200, step=1, value=25, scale=1
262
+ )
263
+ upscale_factor = gr.Slider(
264
+ label="Scale factor (applicable to non-aligned face images)",
265
+ minimum=1,
266
+ maximum=4,
267
+ step=0.1,
268
+ value=1,
269
+ scale=1,
270
+ )
271
+ seed = gr.Slider(label="Seed", minimum=0, maximum=MAX_SEED, step=1, value=42, scale=1)
272
+ randomize_seed = gr.Checkbox(label="Randomize seed", value=True, scale=1)
273
+ aligned = gr.Checkbox(label="The input is an aligned face image", value=False, scale=1)
274
+ with gr.Row():
275
+ with gr.Column(scale=1):
276
+ run_button = gr.Button(value="Submit", variant="primary")
277
+ with gr.Column(scale=1):
278
+ clear_button = gr.ClearButton(value="Clear")
279
+
280
+ with gr.Column(scale=1):
281
+ with gr.Row():
282
  result = gr.Image(label="Output", type="numpy", show_label=True, format="png")
283
+ with gr.Row():
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
284
  gallery = gr.Gallery(
285
  label="Restored faces gallery", type="numpy", show_label=True, format="png"
286
  )