Ahsen Khaliq commited on
Commit
3f7fde4
1 Parent(s): cd32a72

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -3
app.py CHANGED
@@ -6,12 +6,15 @@ os.chdir("bizarre-pose-estimator")
6
 
7
  os.system("gdown https://drive.google.com/uc?id=1qhnBmMdDTC_8kmNj4u2f_Htfvg6KuE14")
8
 
9
- os.system("unzip -j bizarre_pose_models.zip")
10
 
11
- os.system("pwd")
 
 
 
 
12
 
13
  def inference(img):
14
- os.system("python3 -m _scripts.pose_estimator "+img+" /home/user/app/_train/character_pose_estim/runs/feat_concat+data.ckpt")
15
 
16
  return "./_samples/character_pose_estim.png"
17
 
 
6
 
7
  os.system("gdown https://drive.google.com/uc?id=1qhnBmMdDTC_8kmNj4u2f_Htfvg6KuE14")
8
 
 
9
 
10
+ os.system("ln -s bizarre_pose_models . && unzip bizarre_pose_models.zip")
11
+ os.system("rm bizarre_pose_models")
12
+
13
+
14
+ os.system("ls")
15
 
16
  def inference(img):
17
+ os.system("python3 -m _scripts.pose_estimator "+img+" ./_train/character_pose_estim/runs/feat_concat+data.ckpt")
18
 
19
  return "./_samples/character_pose_estim.png"
20