AbderrahmanSkiredj1 commited on
Commit
f115bda
·
verified ·
1 Parent(s): 1619b5e

Create app.py

Browse files
Files changed (1) hide show
  1. app.py +17 -0
app.py ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import zipfile
2
+ import os
3
+ import subprocess
4
+
5
+ def unzip_file(zip_filepath, dest_dir):
6
+ with zipfile.ZipFile(zip_filepath, 'r') as zip_ref:
7
+ zip_ref.extractall(dest_dir)
8
+
9
+ def run_fetch():
10
+ subprocess.run(['python', 'fetch.py'])
11
+
12
+ if __name__ == '__main__':
13
+ run_fetch()
14
+ print('code fetched')
15
+ unzip_file('code.zip', '.') # The '.' specifies the current directory
16
+ print('code unzipped')
17
+ subprocess.run(['python', 'tashkeel_app_nov2024_text_only.py'])