Talo88 commited on
Commit
99adbcc
1 Parent(s): 086a837

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -0
app.py CHANGED
@@ -1,3 +1,8 @@
 
 
 
 
 
1
  import streamlit as st
2
  from detectron2.config import get_cfg
3
  from detectron2.engine import DefaultPredictor
 
1
+ try:
2
+ import detectron2
3
+ except:
4
+ import os
5
+ os.system('pip install git+https://github.com/facebookresearch/detectron2.git')
6
  import streamlit as st
7
  from detectron2.config import get_cfg
8
  from detectron2.engine import DefaultPredictor