Spaces:
Running
Running
Create hook_detector.py
Browse files- 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]
|