Spaces:
Running
Running
Update
Browse files
app.py
CHANGED
|
@@ -17,7 +17,8 @@ import PIL.Image
|
|
| 17 |
import torch
|
| 18 |
|
| 19 |
if os.getenv('SYSTEM') == 'spaces':
|
| 20 |
-
|
|
|
|
| 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 |
|