Spaces:
Runtime error
Runtime error
Input image now uses filepath
Browse files
app.py
CHANGED
@@ -202,7 +202,7 @@ description = "Gradio Demo for StyleGAN-NADA: CLIP-Guided Domain Adaptation of I
|
|
202 |
|
203 |
article = "<p style='text-align: center'><a href='https://arxiv.org/abs/2108.00946' target='_blank'>StyleGAN-NADA: CLIP-Guided Domain Adaptation of Image Generators</a> | <a href='https://stylegan-nada.github.io/' target='_blank'>Project Page</a> | <a href='https://github.com/rinongal/StyleGAN-nada' target='_blank'>Code</a></p> <center><img src='https://visitor-badge.glitch.me/badge?page_id=rinong_sgnada' alt='visitor badge'></center>"
|
204 |
|
205 |
-
gr.Interface(editor.predict, [gr.inputs.Image(type="
|
206 |
gr.inputs.Dropdown(choices=editor.get_style_list(), type="value", default='base', label="Model"),
|
207 |
gr.inputs.Textbox(lines=1, placeholder=None, default="joker,anime,modigliani", label="Style List", optional=True),
|
208 |
gr.inputs.Checkbox(default=False, label="Generate Video?", optional=False),
|
|
|
202 |
|
203 |
article = "<p style='text-align: center'><a href='https://arxiv.org/abs/2108.00946' target='_blank'>StyleGAN-NADA: CLIP-Guided Domain Adaptation of Image Generators</a> | <a href='https://stylegan-nada.github.io/' target='_blank'>Project Page</a> | <a href='https://github.com/rinongal/StyleGAN-nada' target='_blank'>Code</a></p> <center><img src='https://visitor-badge.glitch.me/badge?page_id=rinong_sgnada' alt='visitor badge'></center>"
|
204 |
|
205 |
+
gr.Interface(editor.predict, [gr.inputs.Image(type="filepath"),
|
206 |
gr.inputs.Dropdown(choices=editor.get_style_list(), type="value", default='base', label="Model"),
|
207 |
gr.inputs.Textbox(lines=1, placeholder=None, default="joker,anime,modigliani", label="Style List", optional=True),
|
208 |
gr.inputs.Checkbox(default=False, label="Generate Video?", optional=False),
|