Spaces:
Build error
Build error
solitarycodefinement
commited on
Commit
·
f0266e1
1
Parent(s):
c620232
christmas models
Browse files
app.py
CHANGED
@@ -272,6 +272,8 @@ with blocks:
|
|
272 |
with gr.Column():
|
273 |
style_choice = gr.inputs.CheckboxGroup(choices=editor.get_style_list(), type="value", label="Choose your styles!")
|
274 |
|
|
|
|
|
275 |
with gr.Row():
|
276 |
with gr.Column():
|
277 |
with gr.Tabs():
|
@@ -305,7 +307,8 @@ with blocks:
|
|
305 |
ig_edit_choices = [pose_slider, smile_slider, gender_slider, age_slider, hair_slider]
|
306 |
|
307 |
|
308 |
-
edit_inputs = [
|
|
|
309 |
img_button.click(fn=editor.edit_image, inputs=edit_inputs + [input_img, style_choice], outputs=img_output)
|
310 |
vid_button.click(fn=editor.edit_video, inputs=edit_inputs + [input_img, style_choice, loop_styles], outputs=vid_output)
|
311 |
|
|
|
272 |
with gr.Column():
|
273 |
style_choice = gr.inputs.CheckboxGroup(choices=editor.get_style_list(), type="value", label="Choose your styles!")
|
274 |
|
275 |
+
editing_type_choice = gr.Radio(choices=["None", "InterFaceGAN"], label="Choose latent space editing option. For InterFaceGAN and StyleCLIP, set the options below:")
|
276 |
+
|
277 |
with gr.Row():
|
278 |
with gr.Column():
|
279 |
with gr.Tabs():
|
|
|
307 |
ig_edit_choices = [pose_slider, smile_slider, gender_slider, age_slider, hair_slider]
|
308 |
|
309 |
|
310 |
+
edit_inputs = [editing_type_choice] + ig_edit_choices
|
311 |
+
print(edit_inputs)
|
312 |
img_button.click(fn=editor.edit_image, inputs=edit_inputs + [input_img, style_choice], outputs=img_output)
|
313 |
vid_button.click(fn=editor.edit_video, inputs=edit_inputs + [input_img, style_choice, loop_styles], outputs=vid_output)
|
314 |
|