mayuema commited on
Commit
1675c32
1 Parent(s): 07f969c
Files changed (2) hide show
  1. app.py +5 -1
  2. data/download.sh +0 -1
app.py CHANGED
@@ -12,7 +12,11 @@ import subprocess
12
  sys.path.append('FollowYourPose')
13
 
14
 
15
- result = subprocess.run(['bash', './data/download.sh'], stdout=subprocess.PIPE)
 
 
 
 
16
 
17
  current_dir = os.getcwd()
18
  print("path is :", current_dir)
 
12
  sys.path.append('FollowYourPose')
13
 
14
 
15
+ # result = subprocess.run(['bash', './data/download.sh'], stdout=subprocess.PIPE)
16
+
17
+ zip_file = './example_video.zip'
18
+ output_dir = '/home/user/app/data'
19
+ subprocess.run(['unzip', zip_file, '-d', output_dir])
20
 
21
  current_dir = os.getcwd()
22
  print("path is :", current_dir)
data/download.sh CHANGED
@@ -1,2 +1 @@
1
  wget https://github.com/mayuelala/FollowYourPose/releases/download/v0.0.1/example_video.zip
2
- unzip example_video.zip -d /home/user/app/data
 
1
  wget https://github.com/mayuelala/FollowYourPose/releases/download/v0.0.1/example_video.zip