ohayonguy
commited on
Commit
·
7dcd008
1
Parent(s):
420aa1e
improved interface
Browse files
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 |
-
|
265 |
-
|
266 |
-
|
267 |
-
|
268 |
-
|
269 |
-
|
270 |
-
|
271 |
-
|
272 |
-
|
273 |
-
|
274 |
-
|
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 |
-
|
280 |
-
|
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")
|