MoburstAI commited on
Commit
06cbebe
·
verified ·
1 Parent(s): b90c03f

Trim to 10s for faster processing (~20 encoder chunks instead of 30)

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -318,7 +318,7 @@ def generate_insights(engagement, region_activations, hrf_offset=5):
318
  return insights
319
 
320
 
321
- MAX_DURATION = 15 # Analyze first 15s — captures the hook, which is the most critical part
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: