Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -18,6 +18,9 @@ def process_repository(url, model):
|
|
| 18 |
if repo_name.endswith('.git'):
|
| 19 |
repo_name = repo_name[:-4]
|
| 20 |
|
|
|
|
|
|
|
|
|
|
| 21 |
# Clone the repo
|
| 22 |
subprocess.run(['git', 'clone', url], check=True)
|
| 23 |
|
|
|
|
| 18 |
if repo_name.endswith('.git'):
|
| 19 |
repo_name = repo_name[:-4]
|
| 20 |
|
| 21 |
+
# Change permissions
|
| 22 |
+
subprocess.run(['chmod', 'u+w', '.'])
|
| 23 |
+
|
| 24 |
# Clone the repo
|
| 25 |
subprocess.run(['git', 'clone', url], check=True)
|
| 26 |
|