rinong commited on
Commit
f515965
1 Parent(s): 04b671c
Files changed (1) hide show
  1. app.py +8 -5
app.py CHANGED
@@ -325,6 +325,13 @@ with blocks:
325
  with gr.Column():
326
  input_img = gr.inputs.Image(type="filepath", label="Input image")
327
 
 
 
 
 
 
 
 
328
  with gr.Tabs():
329
  with gr.TabItem("Edit Images"):
330
  img_button = gr.Button("Edit Image")
@@ -339,11 +346,7 @@ with blocks:
339
  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.")
340
  vid_output = gr.outputs.Video(label="Output Video")
341
 
342
- with gr.Column():
343
- style_choice = gr.inputs.CheckboxGroup(choices=editor.get_style_list(), type="value", label="Choose your styles!")
344
-
345
- editing_type_choice = gr.Radio(choices=["None", "InterFaceGAN", "StyleCLIP"], label="Choose latent space editing option. For InterFaceGAN and StyleCLIP, set the options below:")
346
-
347
  with gr.Tabs():
348
  with gr.TabItem("InterFaceGAN Editing Options"):
349
  gr.Markdown("Move the sliders to make the chosen attribute stronger (e.g. the person older) or leave at 0 to disable editing.")
 
325
  with gr.Column():
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
+
333
+ with gr.Row():
334
+ with gr.Column():
335
  with gr.Tabs():
336
  with gr.TabItem("Edit Images"):
337
  img_button = gr.Button("Edit Image")
 
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")
348
 
349
+ with gr.Column():
 
 
 
 
350
  with gr.Tabs():
351
  with gr.TabItem("InterFaceGAN Editing Options"):
352
  gr.Markdown("Move the sliders to make the chosen attribute stronger (e.g. the person older) or leave at 0 to disable editing.")