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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -1
app.py CHANGED
@@ -1,13 +1,19 @@
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)
 
1
  import subprocess
2
  import os
3
 
4
+ # Install necessary packages
5
  subprocess.call(['pip', 'install', 'torch', 'torchvision'])
6
  subprocess.call(['pip', 'install', 'pygit2==1.12.2'])
7
 
8
+ # Clone the repository
9
  git_clone_cmd = ['git', 'clone', 'https://github.com/lllyasviel/Fooocus.git']
10
  subprocess.call(git_clone_cmd)
11
 
12
+ # Navigate to the cloned directory
13
  os.chdir('Fooocus')
14
 
15
+ # Run the Python script with specified arguments
16
+ python_cmd = ['python', 'entry_with_update.py', '--share', '--always-high-vram', '--no-cuda']
17
+
18
+ # Run the Python script
19
  subprocess.call(python_cmd)