akhaliq HF Staff commited on
Commit
0d862e7
·
1 Parent(s): 96363cf

feat: update processor_kwargs to include frame sampling configuration for videos

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -126,7 +126,10 @@ def predict(
126
  return_tensors="pt",
127
  enable_thinking=thinking_mode,
128
  processor_kwargs={
129
- "max_num_frames": max_frames,
 
 
 
130
  }
131
  ).to(model.device)
132
 
 
126
  return_tensors="pt",
127
  enable_thinking=thinking_mode,
128
  processor_kwargs={
129
+ "videos_kwargs": {
130
+ "max_num_frames": max_frames,
131
+ "do_sample_frames": False,
132
+ }
133
  }
134
  ).to(model.device)
135