hysts HF staff commited on
Commit
89d0aa8
·
1 Parent(s): 2a73f20
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -17,7 +17,8 @@ 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
 
 
17
  import torch
18
 
19
  if os.getenv('SYSTEM') == 'spaces':
20
+ with open('patch') as f:
21
+ subprocess.run('patch -p1'.split(), cwd='gan-control', stdin=f)
22
 
23
  sys.path.insert(0, 'gan-control/src')
24