Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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'
|
| 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)
|