Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -22,16 +22,12 @@ def inference(img, ver):
|
|
22 |
|
23 |
title = "AnimeGANv2"
|
24 |
description = "Gradio Demo for AnimeGanv2 Face Portrait. To use it, simply upload your image, or click one of the examples to load them. Read more at the links below. Please use a cropped portrait picture for best results similar to the examples below."
|
25 |
-
article = "<p style='text-align: center'><a href='https://github.com/bryandlee/animegan2-pytorch' target='_blank'>Github Repo Pytorch</a></p> <center><img src='https://visitor-badge.glitch.me/badge?page_id=akhaliq_animegan' alt='visitor badge'></center></p>"
|
26 |
-
examples=[['groot.jpeg','version 2 (πΊ robustness,π» stylization)'],['gongyoo.jpeg','version 1 (πΊ stylization, π» robustness)']]
|
27 |
-
|
28 |
demo = gr.Interface(
|
29 |
fn=inference,
|
30 |
inputs=[gr.inputs.Image(type="pil"),gr.inputs.Radio(['version 1 (πΊ stylization, π» robustness)','version 2 (πΊ robustness,π» stylization)'], type="value", default='version 2 (πΊ robustness,π» stylization)', label='version')],
|
31 |
outputs=gr.outputs.Image(type="pil"),
|
32 |
title=title,
|
33 |
description=description,
|
34 |
-
article=article,
|
35 |
)
|
36 |
|
37 |
demo.launch()
|
|
|
22 |
|
23 |
title = "AnimeGANv2"
|
24 |
description = "Gradio Demo for AnimeGanv2 Face Portrait. To use it, simply upload your image, or click one of the examples to load them. Read more at the links below. Please use a cropped portrait picture for best results similar to the examples below."
|
|
|
|
|
|
|
25 |
demo = gr.Interface(
|
26 |
fn=inference,
|
27 |
inputs=[gr.inputs.Image(type="pil"),gr.inputs.Radio(['version 1 (πΊ stylization, π» robustness)','version 2 (πΊ robustness,π» stylization)'], type="value", default='version 2 (πΊ robustness,π» stylization)', label='version')],
|
28 |
outputs=gr.outputs.Image(type="pil"),
|
29 |
title=title,
|
30 |
description=description,
|
|
|
31 |
)
|
32 |
|
33 |
demo.launch()
|