Ahsen Khaliq
commited on
Commit
·
03b9368
1
Parent(s):
cf3c2e5
Update app.py
Browse files
app.py
CHANGED
@@ -4,12 +4,12 @@ import sys
|
|
4 |
|
5 |
os.system("git clone https://github.com/AK391/PAMA.git")
|
6 |
|
7 |
-
|
8 |
|
9 |
os.system("gdown https://drive.google.com/uc?id=1rPB_qnelVVSad6CtadmhRFi0PMI_RKdy")
|
10 |
-
os.
|
11 |
|
12 |
-
os.system("unzip -j original_PAMA.zip -d
|
13 |
|
14 |
def inference(content,style):
|
15 |
os.system("python main.py eval --content "+content+" --style "+style)
|
|
|
4 |
|
5 |
os.system("git clone https://github.com/AK391/PAMA.git")
|
6 |
|
7 |
+
os.chdir('PAMA')
|
8 |
|
9 |
os.system("gdown https://drive.google.com/uc?id=1rPB_qnelVVSad6CtadmhRFi0PMI_RKdy")
|
10 |
+
os.mkdir("checkpoints/")
|
11 |
|
12 |
+
os.system("unzip -j original_PAMA.zip -d checkpoints/")
|
13 |
|
14 |
def inference(content,style):
|
15 |
os.system("python main.py eval --content "+content+" --style "+style)
|