Reduce max_frames to 20\
Browse files205 unmodified lines206207208209210211212205 unmodified linesasync def infer(video: UploadFile = File(...),frame_rate: int = 5,max_frames: int = 50,) -> dict:# Basic validation of uploaded fileif video.content_type is None or not video.content_type.startswith("video/"):205 unmodified lines206207208209210211212205 unmodified linesasync def infer(video: UploadFile = File(...),frame_rate: int = 5,max_frames: int = 20,) -> dict:# Basic validation of uploaded fileif video.content_type is None or not video.content_type.startswith("video/"):
app.py+1-1