Arpit1234 commited on
Commit
80f3d3e
·
verified ·
1 Parent(s): e06b190

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +16 -5
app.py CHANGED
@@ -1,5 +1,16 @@
1
- !pip install pygit2==1.12.2
2
- %cd /content
3
- !git clone https://github.com/lllyasviel/Fooocus.git
4
- %cd /content/Fooocus
5
- !python entry_with_update.py --share --always-high-vram
 
 
 
 
 
 
 
 
 
 
 
 
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'])