Hugging Face
Models
Datasets
Spaces
Buckets
new
Docs
Enterprise
Pricing
Website
Tasks
HuggingChat
Collections
Languages
Organizations
Community
Blog
Posts
Daily Papers
Hardware
Learn
Discord
Forum
GitHub
Solutions
Team & Enterprise
Hugging Face PRO
Enterprise Support
Inference Providers
Inference Endpoints
Storage Buckets
Log In
Sign Up
Spaces:
Ava2lon
/
litellm
like
0
Running
App
Files
Files
Community
Fetching metadata from the HF Docker repository...
main
litellm
/
services
/
whisper
/
utils
/
hook_detector.py
Ava2lon
Upload 205 files
1425afc
verified
about 1 month ago
Raw
Download with hf CLI
Copy download link
History
Blame
Contribute
Delete
Safe
147 Bytes
def
detect_hook
(
words
):
"""
Finds strongest opening segment (first 3–7 seconds)
"""
return
[w
for
w
in
words
if
w[
"start"
] <=
5
]