Spaces:
Runtime error
Runtime error
Update app2.py
Browse files
app2.py
CHANGED
|
@@ -28,7 +28,7 @@ with open('delay_reasons.json', 'w') as f:
|
|
| 28 |
def load_video(video_data, strategy='chat'):
|
| 29 |
bridge.set_bridge('torch')
|
| 30 |
mp4_stream = video_data
|
| 31 |
-
num_frames =
|
| 32 |
decord_vr = VideoReader(io.BytesIO(mp4_stream), ctx=cpu(0))
|
| 33 |
frame_id_list = []
|
| 34 |
total_frames = len(decord_vr)
|
|
|
|
| 28 |
def load_video(video_data, strategy='chat'):
|
| 29 |
bridge.set_bridge('torch')
|
| 30 |
mp4_stream = video_data
|
| 31 |
+
num_frames = 24
|
| 32 |
decord_vr = VideoReader(io.BytesIO(mp4_stream), ctx=cpu(0))
|
| 33 |
frame_id_list = []
|
| 34 |
total_frames = len(decord_vr)
|