Ahsen Khaliq commited on
Commit
03b9368
·
1 Parent(s): cf3c2e5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -4,12 +4,12 @@ import sys
4
 
5
  os.system("git clone https://github.com/AK391/PAMA.git")
6
 
7
- sys.path.append('./PAMA/')
8
 
9
  os.system("gdown https://drive.google.com/uc?id=1rPB_qnelVVSad6CtadmhRFi0PMI_RKdy")
10
- os.makedirs("./PAMA/checkpoints/")
11
 
12
- os.system("unzip -j original_PAMA.zip -d ./PAMA/checkpoints/")
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)