dragonSwing commited on
Commit
9c55eca
1 Parent(s): 2396fdf

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -16,9 +16,8 @@ from segment_anything import SamPredictor
16
  from supervision.detection.utils import mask_to_polygons
17
  from supervision.detection.utils import xywh_to_xyxy
18
 
19
- if os.environ.get('IS_MY_DEBUG') is None:
20
- result = subprocess.run(['pip', 'install', '-e', 'GroundingDINO'], check=True)
21
- print(f'pip install GroundingDINO = {result}')
22
 
23
  sys.path.append("tag2text")
24
  sys.path.append("GroundingDINO")
 
16
  from supervision.detection.utils import mask_to_polygons
17
  from supervision.detection.utils import xywh_to_xyxy
18
 
19
+ if os.environ.get("IS_MY_DEBUG") is None:
20
+ os.system("pip install -e GroundingDINO")
 
21
 
22
  sys.path.append("tag2text")
23
  sys.path.append("GroundingDINO")