Change the way to apply patch
Browse files
app.py
CHANGED
@@ -10,8 +10,10 @@ import subprocess
|
|
10 |
import gradio as gr
|
11 |
|
12 |
if os.getenv('SYSTEM') == 'spaces':
|
13 |
-
|
14 |
-
|
|
|
|
|
15 |
|
16 |
from model import Model
|
17 |
|
|
|
10 |
import gradio as gr
|
11 |
|
12 |
if os.getenv('SYSTEM') == 'spaces':
|
13 |
+
with open('patch.e4e') as f:
|
14 |
+
subprocess.call('patch -p1'.split(), cwd='encoder4editing', stdin=f)
|
15 |
+
with open('patch.hairclip') as f:
|
16 |
+
subprocess.call('patch -p1'.split(), cwd='HairCLIP', stdin=f)
|
17 |
|
18 |
from model import Model
|
19 |
|