DaniloEducationServer commited on
Commit
c953155
·
verified ·
1 Parent(s): 9053ff7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -5,8 +5,9 @@ import os
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']
 
5
  subprocess.call(['pip', 'install', 'torch', 'torchvision'])
6
  subprocess.call(['pip', 'install', 'pygit2==1.12.2'])
7
 
8
+ # Rimuovi CUDA completamente dall'ambiente
9
+ os.environ.pop('CUDA', None)
10
+ os.environ.pop('CUDA_VISIBLE_DEVICES', None)
11
 
12
  # Clone the repository
13
  git_clone_cmd = ['git', 'clone', 'https://github.com/lllyasviel/Fooocus.git']