basyx commited on
Commit
e5ad341
·
verified ·
1 Parent(s): d86652a

Create hook_detector.py

Browse files
Files changed (1) hide show
  1. utils/hook_detector.py +6 -0
utils/hook_detector.py ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ def detect_hook(words):
2
+ """
3
+ Finds strongest opening segment (first 3–7 seconds)
4
+ """
5
+
6
+ return [w for w in words if w["start"] <= 5]