Spaces:
Runtime error
Runtime error
Update
Browse files
app.py
CHANGED
@@ -16,8 +16,8 @@ import numpy as np
|
|
16 |
import PIL.Image
|
17 |
import torch
|
18 |
|
19 |
-
if os.
|
20 |
-
subprocess.
|
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 |
|