Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -5,6 +5,9 @@ import os
|
|
| 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)
|
|
@@ -12,9 +15,6 @@ subprocess.call(git_clone_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 |
|
|
|
|
| 5 |
subprocess.call(['pip', 'install', 'torch', 'torchvision'])
|
| 6 |
subprocess.call(['pip', 'install', 'pygit2==1.12.2'])
|
| 7 |
|
| 8 |
+
# Set environment variable to disable CUDA completely
|
| 9 |
+
os.environ['CUDA'] = '0'
|
| 10 |
+
|
| 11 |
# Clone the repository
|
| 12 |
git_clone_cmd = ['git', 'clone', 'https://github.com/lllyasviel/Fooocus.git']
|
| 13 |
subprocess.call(git_clone_cmd)
|
|
|
|
| 15 |
# Navigate to the cloned directory
|
| 16 |
os.chdir('Fooocus')
|
| 17 |
|
|
|
|
|
|
|
|
|
|
| 18 |
# Run the Python script with specified arguments
|
| 19 |
python_cmd = ['python', 'entry_with_update.py', '--share', '--always-high-vram']
|
| 20 |
|