HugoHE commited on
Commit
dd432c7
1 Parent(s): 9c351b4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -0
app.py CHANGED
@@ -1,3 +1,8 @@
 
 
 
 
 
1
  import torch
2
  from detectron2.utils.logger import setup_logger
3
  setup_logger()
 
1
+ try:
2
+ import detectron2
3
+ except:
4
+ import os
5
+ os.system('pip install git+https://github.com/facebookresearch/detectron2.git')
6
  import torch
7
  from detectron2.utils.logger import setup_logger
8
  setup_logger()