donghuna commited on
Commit
f345b61
·
verified ·
1 Parent(s): 12916d7

Update handler.py

Browse files
Files changed (1) hide show
  1. 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
- video_path = inputs.get("video_path", "")
26
- ftp_password = inputs.get("ftp_password", "")
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