Spaces:
Running
Running
Martin Tomov
commited on
Commit
β’
a8eee9b
1
Parent(s):
3657d52
transformers app.py for DINO
Browse files
app.py
CHANGED
@@ -12,11 +12,11 @@ except ImportError:
|
|
12 |
from segment_anything import build_sam, SamPredictor
|
13 |
|
14 |
try:
|
15 |
-
|
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
|