Update handler.py
Browse files- handler.py +2 -3
handler.py
CHANGED
@@ -22,9 +22,8 @@ class EndpointHandler:
|
|
22 |
def __call__(self, data):
|
23 |
try:
|
24 |
inputs = data.get("inputs", {})
|
25 |
-
|
26 |
-
|
27 |
-
processed_frames = read_video(video_path, ftp_password)
|
28 |
|
29 |
return {"processed_frames": processed_frames}
|
30 |
|
|
|
22 |
def __call__(self, data):
|
23 |
try:
|
24 |
inputs = data.get("inputs", {})
|
25 |
+
video_base64 = inputs.get("video_base64", "")
|
26 |
+
processed_frames = read_video(video_base64)
|
|
|
27 |
|
28 |
return {"processed_frames": processed_frames}
|
29 |
|