Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
@@ -230,7 +230,7 @@ with blocks:
|
|
230 |
with gr.Column():
|
231 |
input_img = gr.Image(type="filepath", label="Input image")
|
232 |
with gr.Column():
|
233 |
-
style_choice = gr.CheckboxGroup(choices=editor.get_style_list(),
|
234 |
alter = gr.Dropdown(
|
235 |
choices=["None", "Masculine", "Feminine", "Smiling", "Frowning", "Young", "Old", "Short Hair",
|
236 |
"Long Hair"], value="None", label="Additional Modifiers")
|
@@ -241,7 +241,7 @@ with blocks:
|
|
241 |
|
242 |
|
243 |
img_button.click(fn=editor.edit_image, inputs=[alter, input_img, style_choice], outputs=img_output)
|
244 |
-
ex = gr.Examples(examples=[["Smiling", 'example1.jpg', editor.get_style_list()], ["Long Hair", 'example2.jpg', editor.get_style_list()]], fn=
|
245 |
outputs=[img_output], cache_examples=True,
|
246 |
run_on_click=True)
|
247 |
ex.dataset.headers = [""]
|
|
|
230 |
with gr.Column():
|
231 |
input_img = gr.Image(type="filepath", label="Input image")
|
232 |
with gr.Column():
|
233 |
+
style_choice = gr.CheckboxGroup(choices=editor.get_style_list(), value=editor.get_style_list(), type="value", label="Styles")
|
234 |
alter = gr.Dropdown(
|
235 |
choices=["None", "Masculine", "Feminine", "Smiling", "Frowning", "Young", "Old", "Short Hair",
|
236 |
"Long Hair"], value="None", label="Additional Modifiers")
|
|
|
241 |
|
242 |
|
243 |
img_button.click(fn=editor.edit_image, inputs=[alter, input_img, style_choice], outputs=img_output)
|
244 |
+
ex = gr.Examples(examples=[["Smiling", 'example1.jpg', editor.get_style_list()], ["Long Hair", 'example2.jpg', editor.get_style_list()]], fn=editor.edit_image, inputs=[alter, input_image, style_choice],
|
245 |
outputs=[img_output], cache_examples=True,
|
246 |
run_on_click=True)
|
247 |
ex.dataset.headers = [""]
|