bklg commited on
Commit
2bb65d7
1 Parent(s): 4aa69fb

Update app.py

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