Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import os
|
| 2 |
+
|
| 3 |
+
# Print the current working directory
|
| 4 |
+
print("Current working directory:", os.getcwd())
|
| 5 |
+
|
| 6 |
+
# Clone the Fooocus repository
|
| 7 |
+
os.system("git clone https://github.com/lllyasviel/Fooocus.git")
|
| 8 |
+
|
| 9 |
+
# List files in the current directory
|
| 10 |
+
os.system("ls")
|
| 11 |
+
|
| 12 |
+
# Change directory to Fooocus
|
| 13 |
+
os.chdir("Fooocus")
|
| 14 |
+
|
| 15 |
+
# Install dependencies
|
| 16 |
+
os.system("pip install pygit2==1.15.1")
|
| 17 |
+
|
| 18 |
+
# Run Fooocus
|
| 19 |
+
os.system("python entry_with_update.py --always-cpu")
|