English
detection
open-world
open-set
Inference Endpoints
kelvinou01 commited on
Commit
b435ec9
1 Parent(s): c56d19f
Files changed (1) hide show
  1. handler.py +1 -1
handler.py CHANGED
@@ -18,7 +18,7 @@ class EndpointHandler():
18
  def __init__(self, path):
19
  # Preload all the elements you are going to need at inference.
20
 
21
- self.model = load_model(CONFIG_PATH, path)
22
 
23
  def __call__(self, data: Dict[str, Any]) -> List[Dict[str, Any]]:
24
  """
 
18
  def __init__(self, path):
19
  # Preload all the elements you are going to need at inference.
20
 
21
+ self.model = load_model(CONFIG_PATH, os.path.join(path, "weights", "groundingdino_swint_ogc.pth"))
22
 
23
  def __call__(self, data: Dict[str, Any]) -> List[Dict[str, Any]]:
24
  """