Spaces:
Sleeping
Sleeping
Pradeep Kumar
commited on
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,4 +1,16 @@
|
|
| 1 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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
|