Update handler.py
Browse files- handler.py +7 -3
handler.py
CHANGED
@@ -26,9 +26,13 @@ class EndpointHandler:
|
|
26 |
# ftp_password = data["inputs"]["ftp_password"]
|
27 |
|
28 |
# inputs = json.loads(data)
|
29 |
-
video_path = data.get("inputs", {}).get("video_path", "")
|
30 |
-
ftp_password = data.get("inputs", {}).get("ftp_password", "")
|
31 |
-
|
|
|
|
|
|
|
|
|
32 |
processed_frames = read_video(video_path, ftp_password)
|
33 |
|
34 |
|
|
|
26 |
# ftp_password = data["inputs"]["ftp_password"]
|
27 |
|
28 |
# inputs = json.loads(data)
|
29 |
+
# video_path = data.get("inputs", {}).get("video_path", "")
|
30 |
+
# ftp_password = data.get("inputs", {}).get("ftp_password", "")
|
31 |
+
|
32 |
+
inputs = data.get("inputs", {})
|
33 |
+
video_path = inputs.get("video_path", "")
|
34 |
+
ftp_password = inputs.get("ftp_password", "")
|
35 |
+
|
36 |
processed_frames = read_video(video_path, ftp_password)
|
37 |
|
38 |
|