Update handler.py
Browse files- 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 |
-
|
|
|
|
|
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:
|