Ahsen Khaliq commited on
Commit
f6edc5a
1 Parent(s): 1d0c905

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -3,7 +3,6 @@ os.system("git clone https://github.com/bryandlee/animegan2-pytorch")
3
 
4
  os.system("gdown https://drive.google.com/uc?id=1WK5Mdt6mwlcsqCZMHkCUSDJxN1UyFi0-")
5
  os.system("gdown https://drive.google.com/uc?id=18H3iK09_d54qEDoWIc82SyWB2xun4gjU")
6
- #os.system("pip install dlib")
7
 
8
  import sys
9
  sys.path.append("animegan2-pytorch")
@@ -43,7 +42,6 @@ def face2paint(
43
 
44
 
45
  import os
46
- #import dlib
47
  import collections
48
  from typing import Union, List
49
  import numpy as np
@@ -64,6 +62,8 @@ def inference(image):
64
  return out
65
 
66
 
 
 
 
67
 
68
- iface = gr.Interface(inference, gr.inputs.Image(type="pil"), gr.outputs.Image(type="pil"))
69
- iface.launch()
 
3
 
4
  os.system("gdown https://drive.google.com/uc?id=1WK5Mdt6mwlcsqCZMHkCUSDJxN1UyFi0-")
5
  os.system("gdown https://drive.google.com/uc?id=18H3iK09_d54qEDoWIc82SyWB2xun4gjU")
 
6
 
7
  import sys
8
  sys.path.append("animegan2-pytorch")
 
42
 
43
 
44
  import os
 
45
  import collections
46
  from typing import Union, List
47
  import numpy as np
 
62
  return out
63
 
64
 
65
+ title = "Animeganv2"
66
+ description = "Gradio demo for AnimeGanv2 Face Portrait v2. To use it, simply upload your image, or click one of the examples to load them. Read more at the links below."
67
+ article = "<p style='text-align: center'><a href='https://github.com/bryandlee/animegan2-pytorch'>Github Repo</a></p>"
68
 
69
+ gr.Interface(inference, gr.inputs.Image(type="pil"), gr.outputs.Image(type="pil")).launch()