hysts HF staff commited on
Commit
53bc3ef
1 Parent(s): e30d2e6
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -16,8 +16,8 @@ import numpy as np
16
  import PIL.Image
17
  import torch
18
 
19
- if os.environ.get('SYSTEM') == 'spaces':
20
- subprocess.call('git apply ../patch'.split(), cwd='gan-control')
21
 
22
  sys.path.insert(0, 'gan-control/src')
23
 
 
16
  import PIL.Image
17
  import torch
18
 
19
+ if os.getenv('SYSTEM') == 'spaces':
20
+ subprocess.run('git apply ../patch'.split(), cwd='gan-control')
21
 
22
  sys.path.insert(0, 'gan-control/src')
23