Update a1111.py
Browse files
a1111.py
CHANGED
|
@@ -1,9 +1,10 @@
|
|
| 1 |
-
|
| 2 |
|
| 3 |
-
# Clone a repository
|
| 4 |
repo_url = 'https://github.com/AUTOMATIC1111/stable-diffusion-webui'
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
print(
|
|
|
|
|
|
|
|
|
| 1 |
+
import subprocess
|
| 2 |
|
|
|
|
| 3 |
repo_url = 'https://github.com/AUTOMATIC1111/stable-diffusion-webui'
|
| 4 |
+
dest_path = './Repo'
|
| 5 |
+
# Run the git clone command
|
| 6 |
+
try:
|
| 7 |
+
subprocess.run(['git', 'clone', repo_url, dest_path], check=True)
|
| 8 |
+
print('Clone operation completed successfully! ๐')
|
| 9 |
+
except subprocess.CalledProcessError:
|
| 10 |
+
print('Clone operation failed! ๐')
|