donghuna commited on
Commit
b9431dc
·
verified ·
1 Parent(s): 7ce0e5e

Update handler.py

Browse files
Files changed (1) hide show
  1. handler.py +3 -1
handler.py CHANGED
@@ -21,7 +21,9 @@ class EndpointHandler:
21
  self.model.classifier = torch.nn.Linear(self.model.classifier.in_features, 48) # 48 output classes
22
  self.model.eval()
23
 
24
- def __call__(self, data: Dict[str, Any]) -> Dict[str, Any]:
 
 
25
  inputs = data.get("inputs")
26
  if not inputs:
27
  return {"error": "No video input provided"}
 
21
  self.model.classifier = torch.nn.Linear(self.model.classifier.in_features, 48) # 48 output classes
22
  self.model.eval()
23
 
24
+ def __call__(self, data: Dict[str, Any]) -> List[Dict[str, Any]]:
25
+ return {"predicted_class": 1}
26
+
27
  inputs = data.get("inputs")
28
  if not inputs:
29
  return {"error": "No video input provided"}