Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -26,7 +26,7 @@ DELAY_REASONS = {
|
|
| 26 |
def load_video(video_data, strategy='chat'):
|
| 27 |
"""Loads and processes video data into a format suitable for model input."""
|
| 28 |
bridge.set_bridge('torch')
|
| 29 |
-
num_frames =
|
| 30 |
|
| 31 |
if isinstance(video_data, str):
|
| 32 |
decord_vr = VideoReader(video_data, ctx=cpu(0))
|
|
|
|
| 26 |
def load_video(video_data, strategy='chat'):
|
| 27 |
"""Loads and processes video data into a format suitable for model input."""
|
| 28 |
bridge.set_bridge('torch')
|
| 29 |
+
num_frames = 48
|
| 30 |
|
| 31 |
if isinstance(video_data, str):
|
| 32 |
decord_vr = VideoReader(video_data, ctx=cpu(0))
|