DaniloEducationServer commited on
Commit
d424694
·
verified ·
1 Parent(s): 9bc3961

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +13 -6
app.py CHANGED
@@ -1,6 +1,13 @@
1
- !pip install torch torchvision
2
- !pip install pygit2==1.12.2
3
- %cd /content
4
- git clone https://github.com/lllyasviel/Fooocus.git
5
- %cd /content/Fooocus
6
- python entry_with_update.py --share --always-high-vram
 
 
 
 
 
 
 
 
1
+ import subprocess
2
+ import os
3
+
4
+ subprocess.call(['pip', 'install', 'torch', 'torchvision'])
5
+ subprocess.call(['pip', 'install', 'pygit2==1.12.2'])
6
+
7
+ git_clone_cmd = ['git', 'clone', 'https://github.com/lllyasviel/Fooocus.git']
8
+ subprocess.call(git_clone_cmd)
9
+
10
+ os.chdir('Fooocus')
11
+
12
+ python_cmd = ['python', 'entry_with_update.py', '--share', '--always-high-vram']
13
+ subprocess.call(python_cmd)