dnth commited on
Commit
cc3ec08
·
1 Parent(s): b987536

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -0
app.py CHANGED
@@ -1,3 +1,10 @@
 
 
 
 
 
 
 
1
  from gradio.outputs import Label
2
  from icevision.all import *
3
  from icevision.models.checkpoint import *
 
1
+ import subprocess
2
+ import sys
3
+ print("Reinstalling mmcv")
4
+ subprocess.check_call([sys.executable, "-m", "pip", "uninstall", "-y", "mmcv-full==1.3.17"])
5
+ subprocess.check_call([sys.executable, "-m", "pip", "install", "mmcv-full==1.3.17", "-f", "https://download.openmmlab.com/mmcv/dist/cpu/torch1.10.0/index.html"])
6
+ print("mmcv install complete")
7
+
8
  from gradio.outputs import Label
9
  from icevision.all import *
10
  from icevision.models.checkpoint import *