aupfe08 commited on
Commit
8c1d0cd
Β·
1 Parent(s): 30a6939

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -4
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()