Pradeep Kumar commited on
Commit
25d58ef
·
verified ·
1 Parent(s): 9a01246

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +13 -1
app.py CHANGED
@@ -1,4 +1,16 @@
1
- !git clone --depth 1 -b v2.17.0 https://github.com/tensorflow/models.git
 
 
 
 
 
 
 
 
 
 
 
 
2
 
3
  import zipfile
4
  import sys
 
1
+ import subprocess
2
+
3
+ # Command to clone the repository
4
+ clone_command = [
5
+ 'git', 'clone', '--depth', '1', '-b', 'v2.17.0', 'https://github.com/tensorflow/models.git'
6
+ ]
7
+
8
+ # Run the command
9
+ subprocess.run(clone_command, check=True)
10
+
11
+ # Verify the contents of the cloned repository
12
+ import os
13
+ print(f"Files in 'models' directory:", os.listdir('models'))
14
 
15
  import zipfile
16
  import sys