Ahsen Khaliq commited on
Commit
8374f2f
1 Parent(s): b88eb8a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -7,6 +7,7 @@ os.system("pip install gdown")
7
  os.system("pip install dlib")
8
  os.system("gdown https://drive.google.com/uc?id=1i873OKcKjvpxiF0UBU4NzxlMMaD9qR5z")
9
  os.system("wget https://github.com/kim-ninh/align_face_ffhq/raw/main/shape_predictor_68_face_landmarks.dat -P .")
 
10
 
11
  def inference(image):
12
  os.system("python scripts/test.py --align --ckpt ./e4e_encode_mobile_cartoon.pt --network e4e --platform torch --size 1024 --images_path "+image.name)
@@ -24,5 +25,5 @@ gr.Interface(
24
  description=description,
25
  article=article,
26
  enable_queue=True,
27
- examples=[['mona2.jpeg']]
28
  ).launch(debug=True)
 
7
  os.system("pip install dlib")
8
  os.system("gdown https://drive.google.com/uc?id=1i873OKcKjvpxiF0UBU4NzxlMMaD9qR5z")
9
  os.system("wget https://github.com/kim-ninh/align_face_ffhq/raw/main/shape_predictor_68_face_landmarks.dat -P .")
10
+ os.system("wget https://i.imgur.com/dJVNQSF.jpg -O ./mona.jpg")
11
 
12
  def inference(image):
13
  os.system("python scripts/test.py --align --ckpt ./e4e_encode_mobile_cartoon.pt --network e4e --platform torch --size 1024 --images_path "+image.name)
 
25
  description=description,
26
  article=article,
27
  enable_queue=True,
28
+ examples=[['mona.jpg']]
29
  ).launch(debug=True)