Spaces:
Running on T4
Running on T4
Trim to 10s for faster processing (~20 encoder chunks instead of 30)
Browse files
app.py
CHANGED
|
@@ -318,7 +318,7 @@ def generate_insights(engagement, region_activations, hrf_offset=5):
|
|
| 318 |
return insights
|
| 319 |
|
| 320 |
|
| 321 |
-
MAX_DURATION =
|
| 322 |
|
| 323 |
|
| 324 |
def trim_video(input_path: str, max_seconds: int = MAX_DURATION) -> str:
|
|
|
|
| 318 |
return insights
|
| 319 |
|
| 320 |
|
| 321 |
+
MAX_DURATION = 10 # Analyze first 10s — captures hook + first message beat
|
| 322 |
|
| 323 |
|
| 324 |
def trim_video(input_path: str, max_seconds: int = MAX_DURATION) -> str:
|