Ahsen Khaliq
commited on
Commit
•
968fdf8
1
Parent(s):
dce67b1
Update app.py
Browse files
app.py
CHANGED
@@ -4,8 +4,9 @@ os.system("gdown https://drive.google.com/uc?id=12ElLliRlgGZqPOhUcqJtNVsa7rmzSI5
|
|
4 |
os.system("gdown https://drive.google.com/uc?id=1-79oBWGFQXrKYw9oxX7t468Zrp87NoWn")
|
5 |
|
6 |
def inference(content, style):
|
7 |
-
os.
|
8 |
-
|
|
|
9 |
return "out.jpg"
|
10 |
|
11 |
title = "BlendGAN"
|
|
|
4 |
os.system("gdown https://drive.google.com/uc?id=1-79oBWGFQXrKYw9oxX7t468Zrp87NoWn")
|
5 |
|
6 |
def inference(content, style):
|
7 |
+
os.rename(content.name, "content.png")
|
8 |
+
os.rename(style.name, "style.png")
|
9 |
+
os.system("""python style_transfer_folder.py --size 1024 --ckpt ./blendgan.pt --psp_encoder_ckpt ./psp_encoder.pt --style_img_path style.png --input_img_path content.png""")
|
10 |
return "out.jpg"
|
11 |
|
12 |
title = "BlendGAN"
|