hysts HF staff commited on
Commit
a6f75f6
·
1 Parent(s): a0c1ef8
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -12,7 +12,8 @@ import gradio as gr
12
  if os.getenv('SYSTEM') == 'spaces':
13
  subprocess.run('pip uninstall -y mmcv-full'.split())
14
  subprocess.run('pip install mmcv-full==1.5.2'.split())
15
- subprocess.run('git apply ../patch'.split(), cwd='Text2Human')
 
16
 
17
  from model import Model
18
 
 
12
  if os.getenv('SYSTEM') == 'spaces':
13
  subprocess.run('pip uninstall -y mmcv-full'.split())
14
  subprocess.run('pip install mmcv-full==1.5.2'.split())
15
+ with open('patch') as f:
16
+ subprocess.run('patch -p1'.split(), cwd='Text2Human', stdin=f)
17
 
18
  from model import Model
19