Update handler.py
Browse files- handler.py +1 -8
handler.py
CHANGED
@@ -22,14 +22,7 @@ class EndpointHandler:
|
|
22 |
|
23 |
def __call__(self, data):
|
24 |
try:
|
25 |
-
|
26 |
-
if not inputs:
|
27 |
-
raise ValueError("Missing inputs in data")
|
28 |
-
|
29 |
-
video_base64 = inputs.get("video_base64")
|
30 |
-
if not video_base64:
|
31 |
-
raise ValueError("Missing video_base64 in inputs")
|
32 |
-
|
33 |
|
34 |
processed_frames = read_video(video_base64)
|
35 |
|
|
|
22 |
|
23 |
def __call__(self, data):
|
24 |
try:
|
25 |
+
video_base64 = data.get("video_base64")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
26 |
|
27 |
processed_frames = read_video(video_base64)
|
28 |
|