donghuna commited on
Commit
488bf87
·
verified ·
1 Parent(s): b9431dc

Update handler.py

Browse files
Files changed (1) hide show
  1. handler.py +8 -8
handler.py CHANGED
@@ -24,13 +24,13 @@ class EndpointHandler:
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"}
30
 
31
- # 비디오 파일 경로
32
- video_path = inputs.get("video_path")
33
- if not video_path or not os.path.exists(video_path):
34
- return {"error": "Invalid or missing video file"}
35
 
36
- return {"predicted_class": 1}
 
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"}
30
 
31
+ # # 비디오 파일 경로
32
+ # video_path = inputs.get("video_path")
33
+ # if not video_path or not os.path.exists(video_path):
34
+ # return {"error": "Invalid or missing video file"}
35
 
36
+ # return {"predicted_class": 1}