Spaces:
Running
Running
Commit ·
b55f13c
1
Parent(s): a0f50d6
Fix: use 'is not None' for Progress check (Gradio 5 __len__ bug)
Browse files
processors/video_processor.py
CHANGED
|
@@ -72,7 +72,7 @@ class VideoProcessor:
|
|
| 72 |
if not ret:
|
| 73 |
break
|
| 74 |
|
| 75 |
-
if progress and total_frames > 0:
|
| 76 |
progress(
|
| 77 |
frame_idx / total_frames,
|
| 78 |
f"Processing frame {frame_idx + 1} / {total_frames}",
|
|
|
|
| 72 |
if not ret:
|
| 73 |
break
|
| 74 |
|
| 75 |
+
if progress is not None and total_frames > 0:
|
| 76 |
progress(
|
| 77 |
frame_idx / total_frames,
|
| 78 |
f"Processing frame {frame_idx + 1} / {total_frames}",
|