hysts commited on
Commit
ab7feca
1 Parent(s): cd8f155
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -10,9 +10,9 @@ import subprocess
10
  import gradio as gr
11
 
12
  if os.getenv('SYSTEM') == 'spaces':
13
- subprocess.call('pip uninstall -y mmcv-full'.split())
14
- subprocess.call('pip install mmcv-full==1.5.2'.split())
15
- subprocess.call('git apply ../patch'.split(), cwd='Text2Human')
16
 
17
  from model import Model
18
 
10
  import gradio as gr
11
 
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