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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -12,8 +12,11 @@ subprocess.call(git_clone_cmd)
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)
 
12
  # Navigate to the cloned directory
13
  os.chdir('Fooocus')
14
 
15
+ # Set environment variable to disable GPU
16
+ os.environ['CUDA_VISIBLE_DEVICES'] = ''
17
+
18
  # Run the Python script with specified arguments
19
+ python_cmd = ['python', 'entry_with_update.py', '--share', '--always-high-vram']
20
 
21
  # Run the Python script
22
  subprocess.call(python_cmd)