dnth commited on
Commit
51a3865
1 Parent(s): 0f07c40

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -0
app.py CHANGED
@@ -1,3 +1,12 @@
 
 
 
 
 
 
 
 
 
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
+ ## Only works if we reinstall mmcv here.
9
+
10
  from gradio.outputs import Label
11
  from icevision.all import *
12
  from icevision.models.checkpoint import *