donghuna commited on
Commit
3ba40ec
·
verified ·
1 Parent(s): 247df16

Update handler.py

Browse files
Files changed (1) hide show
  1. handler.py +1 -8
handler.py CHANGED
@@ -22,14 +22,7 @@ class EndpointHandler:
22
 
23
  def __call__(self, data):
24
  try:
25
- inputs = data.get("inputs")
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