donghuna commited on
Commit
07d81c1
·
verified ·
1 Parent(s): 9a97756

Update handler.py

Browse files
Files changed (1) hide show
  1. handler.py +4 -2
handler.py CHANGED
@@ -31,8 +31,10 @@ class EndpointHandler:
31
  """
32
 
33
  inputs = data.get("inputs")
34
- read_video(inputs)
35
- return inputs[0:10]
 
 
36
 
37
  # inputs = data.get("inputs")
38
  # if not inputs:
 
31
  """
32
 
33
  inputs = data.get("inputs")
34
+ videos = read_video(inputs)
35
+ outputs = model(videos)
36
+ _, predicted = torch.max(outputs.logits, 1)
37
+ return predicted
38
 
39
  # inputs = data.get("inputs")
40
  # if not inputs: