tobiasc commited on
Commit
d688b67
1 Parent(s): 490f4a7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -3
app.py CHANGED
@@ -3,9 +3,6 @@ import subprocess, os, sys
3
  result = subprocess.run(["pip", "install", "-e", "GroundingDINO"], check=True)
4
  print(f"pip install GroundingDINO = {result}")
5
 
6
- result = subprocess.run(["pip", "install", "gradio==3.27.0"], check=True)
7
- print(f"pip install gradio==3.27.0 = {result}")
8
-
9
  sys.path.insert(0, "./GroundingDINO")
10
 
11
  if not os.path.exists("./sam_vit_h_4b8939.pth"):
@@ -99,6 +96,7 @@ def dino_detection(
99
  box_threshold=box_threshold,
100
  text_threshold=text_threshold,
101
  device=device,
 
102
  )
103
  category_ids = [category_name_to_id[phrase] for phrase in phrases]
104
 
 
3
  result = subprocess.run(["pip", "install", "-e", "GroundingDINO"], check=True)
4
  print(f"pip install GroundingDINO = {result}")
5
 
 
 
 
6
  sys.path.insert(0, "./GroundingDINO")
7
 
8
  if not os.path.exists("./sam_vit_h_4b8939.pth"):
 
96
  box_threshold=box_threshold,
97
  text_threshold=text_threshold,
98
  device=device,
99
+ remove_combined=True
100
  )
101
  category_ids = [category_name_to_id[phrase] for phrase in phrases]
102