Martin Tomov commited on
Commit
a8eee9b
β€’
1 Parent(s): 3657d52

transformers app.py for DINO

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -12,11 +12,11 @@ except ImportError:
12
  from segment_anything import build_sam, SamPredictor
13
 
14
  try:
15
- from GroundingDINO.groundingdino.util import box_ops
16
  except ImportError:
17
  import os
 
18
  os.system('pip install git+https://github.com/IDEA-Research/Grounded-Segment-Anything.git')
19
- from GroundingDINO.groundingdino.util import box_ops
20
 
21
  import gradio as gr
22
  import json
 
12
  from segment_anything import build_sam, SamPredictor
13
 
14
  try:
15
+ import grounded_dino
16
  except ImportError:
17
  import os
18
+ os.system('pip install transformers')
19
  os.system('pip install git+https://github.com/IDEA-Research/Grounded-Segment-Anything.git')
 
20
 
21
  import gradio as gr
22
  import json