Spaces:
Runtime error
Runtime error
Ahsen Khaliq
commited on
Commit
•
41d1a70
1
Parent(s):
fd53425
Update app.py
Browse files
app.py
CHANGED
@@ -5,11 +5,11 @@ os.system("git clone https://github.com/AK391/realworld-stylegan2-encoder.git")
|
|
5 |
os.chdir("realworld-stylegan2-encoder")
|
6 |
os.system("pip install gdown")
|
7 |
os.system("pip install dlib")
|
8 |
-
os.system("gdown https://drive.google.com/uc?id=
|
9 |
-
os.system("gdown https://drive.google.com/uc?id=1WocJsMOsn6LP5NNZzhP9ErO7uz8gK8xI")
|
10 |
|
11 |
def inference(image):
|
12 |
-
|
|
|
13 |
|
14 |
return "out.png"
|
15 |
|
|
|
5 |
os.chdir("realworld-stylegan2-encoder")
|
6 |
os.system("pip install gdown")
|
7 |
os.system("pip install dlib")
|
8 |
+
os.system("gdown https://drive.google.com/uc?id=1i873OKcKjvpxiF0UBU4NzxlMMaD9qR5z")
|
|
|
9 |
|
10 |
def inference(image):
|
11 |
+
|
12 |
+
os.system("python scripts/test.py --ckpt ./e4e_encode_mobile_cartoon.pt --network e4e --platform torch --size 1024 --images_path "+image.name)
|
13 |
|
14 |
return "out.png"
|
15 |
|