ohayonguy
commited on
Commit
·
420aa1e
1
Parent(s):
04d6358
improved interface
Browse files
app.py
CHANGED
@@ -260,24 +260,31 @@ with gr.Blocks(css=css, theme=gr.themes.Soft()) as demo:
|
|
260 |
result = gr.Image(label="Output", type="numpy", show_label=True, format="png")
|
261 |
with gr.Row():
|
262 |
with gr.Column(scale=1):
|
263 |
-
|
264 |
-
|
265 |
-
|
266 |
-
|
267 |
-
|
268 |
-
|
269 |
-
|
270 |
-
|
271 |
-
|
272 |
-
|
273 |
-
|
274 |
-
|
275 |
-
|
276 |
-
|
277 |
-
|
278 |
-
|
279 |
-
|
280 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
281 |
|
282 |
with gr.Column(scale=1):
|
283 |
gallery = gr.Gallery(
|
|
|
260 |
result = gr.Image(label="Output", type="numpy", show_label=True, format="png")
|
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")
|
286 |
+
with gr.Column(scale=1):
|
287 |
+
clear_button = gr.ClearButton(value="Clear")
|
288 |
|
289 |
with gr.Column(scale=1):
|
290 |
gallery = gr.Gallery(
|