hysts commited on
Commit
37c10df
1 Parent(s): 4707407
Files changed (1) hide show
  1. model.py +3 -3
model.py CHANGED
@@ -10,9 +10,9 @@ if os.getenv('SYSTEM') == 'spaces':
10
  mim.uninstall('mmcv-full', confirm_yes=True)
11
  mim.install('mmcv-full==1.5.0', is_yes=True)
12
 
13
- subprocess.call('pip uninstall -y opencv-python'.split())
14
- subprocess.call('pip uninstall -y opencv-python-headless'.split())
15
- subprocess.call('pip install opencv-python-headless==4.5.5.64'.split())
16
 
17
  import huggingface_hub
18
  import numpy as np
 
10
  mim.uninstall('mmcv-full', confirm_yes=True)
11
  mim.install('mmcv-full==1.5.0', is_yes=True)
12
 
13
+ subprocess.run('pip uninstall -y opencv-python'.split())
14
+ subprocess.run('pip uninstall -y opencv-python-headless'.split())
15
+ subprocess.run('pip install opencv-python-headless==4.5.5.64'.split())
16
 
17
  import huggingface_hub
18
  import numpy as np