Spaces:
Runtime error
Runtime error
Update
Browse files
app.py
CHANGED
|
@@ -11,9 +11,9 @@ import gradio as gr
|
|
| 11 |
|
| 12 |
if os.getenv('SYSTEM') == 'spaces':
|
| 13 |
with open('patch.e4e') as f:
|
| 14 |
-
subprocess.
|
| 15 |
with open('patch.hairclip') as f:
|
| 16 |
-
subprocess.
|
| 17 |
|
| 18 |
from model import Model
|
| 19 |
|
|
|
|
| 11 |
|
| 12 |
if os.getenv('SYSTEM') == 'spaces':
|
| 13 |
with open('patch.e4e') as f:
|
| 14 |
+
subprocess.run('patch -p1'.split(), cwd='encoder4editing', stdin=f)
|
| 15 |
with open('patch.hairclip') as f:
|
| 16 |
+
subprocess.run('patch -p1'.split(), cwd='HairCLIP', stdin=f)
|
| 17 |
|
| 18 |
from model import Model
|
| 19 |
|