Update app.py
Browse files
app.py
CHANGED
|
@@ -1,5 +1,16 @@
|
|
| 1 |
-
|
| 2 |
-
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import subprocess
|
| 2 |
+
|
| 3 |
+
# Install pygit2
|
| 4 |
+
subprocess.run(['pip', 'install', 'pygit2==1.12.2'])
|
| 5 |
+
|
| 6 |
+
# Change directory to /content
|
| 7 |
+
subprocess.run(['cd', '/content'])
|
| 8 |
+
|
| 9 |
+
# Clone the repository
|
| 10 |
+
subprocess.run(['git', 'clone', 'https://github.com/lllyasviel/Fooocus.git'])
|
| 11 |
+
|
| 12 |
+
# Change directory to /content/Fooocus
|
| 13 |
+
subprocess.run(['cd', '/content/Fooocus'])
|
| 14 |
+
|
| 15 |
+
# Run the Python script
|
| 16 |
+
subprocess.run(['python', 'entry_with_update.py', '--share', '--always-high-vram'])
|