Spaces:
Runtime error
Runtime error
Set default style, UI fix
Browse files
app.py
CHANGED
@@ -326,7 +326,7 @@ with blocks:
|
|
326 |
input_img = gr.inputs.Image(type="filepath", label="Input image")
|
327 |
|
328 |
with gr.Column():
|
329 |
-
style_choice = gr.inputs.CheckboxGroup(choices=editor.get_style_list(), type="value", label="Choose your styles!")
|
330 |
|
331 |
editing_type_choice = gr.Radio(choices=["None", "InterFaceGAN", "StyleCLIP"], label="Choose latent space editing option. For InterFaceGAN and StyleCLIP, set the options below:")
|
332 |
|
@@ -342,6 +342,7 @@ with blocks:
|
|
342 |
vid_button = gr.Button("Generate Video")
|
343 |
loop_styles = gr.inputs.Checkbox(default=True, label="Loop video back to the initial style?")
|
344 |
with gr.Row():
|
|
|
345 |
gr.Markdown("Warning: Videos generation requires the synthesis of hundreds of frames and is expected to take several minutes.")
|
346 |
gr.Markdown("To reduce queue times, we significantly reduced the number of video frames. Using more than 3 styles will further reduce the frames per style, leading to quicker transitions. For better control, we recommend cloning the gradio app, adjusting <b>num_alphas</b> in <b>generate_videos.py</b>, and running the code locally.")
|
347 |
vid_output = gr.outputs.Video(label="Output Video")
|
|
|
326 |
input_img = gr.inputs.Image(type="filepath", label="Input image")
|
327 |
|
328 |
with gr.Column():
|
329 |
+
style_choice = gr.inputs.CheckboxGroup(choices=editor.get_style_list(), type="value", label="Choose your styles!", value=["base"])
|
330 |
|
331 |
editing_type_choice = gr.Radio(choices=["None", "InterFaceGAN", "StyleCLIP"], label="Choose latent space editing option. For InterFaceGAN and StyleCLIP, set the options below:")
|
332 |
|
|
|
342 |
vid_button = gr.Button("Generate Video")
|
343 |
loop_styles = gr.inputs.Checkbox(default=True, label="Loop video back to the initial style?")
|
344 |
with gr.Row():
|
345 |
+
with gr.Column():
|
346 |
gr.Markdown("Warning: Videos generation requires the synthesis of hundreds of frames and is expected to take several minutes.")
|
347 |
gr.Markdown("To reduce queue times, we significantly reduced the number of video frames. Using more than 3 styles will further reduce the frames per style, leading to quicker transitions. For better control, we recommend cloning the gradio app, adjusting <b>num_alphas</b> in <b>generate_videos.py</b>, and running the code locally.")
|
348 |
vid_output = gr.outputs.Video(label="Output Video")
|