Spaces:
Running on Zero
Running on Zero
feat: update processor_kwargs to include frame sampling configuration for videos
Browse files
app.py
CHANGED
|
@@ -126,7 +126,10 @@ def predict(
|
|
| 126 |
return_tensors="pt",
|
| 127 |
enable_thinking=thinking_mode,
|
| 128 |
processor_kwargs={
|
| 129 |
-
"
|
|
|
|
|
|
|
|
|
|
| 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 |
|