litellm / services /whisper /utils /hook_detector.py
Ava2lon's picture
Upload 205 files
1425afc verified
Raw
History Blame Contribute Delete
147 Bytes
def detect_hook(words):
"""
Finds strongest opening segment (first 3–7 seconds)
"""
return [w for w in words if w["start"] <= 5]