Spaces:
Running
Running
Update src/components/MultiSourceCaptioningView.tsx
Browse files
src/components/MultiSourceCaptioningView.tsx
CHANGED
@@ -135,7 +135,7 @@ export default function MultiSourceCaptioningView() {
|
|
135 |
const isVideoModeActive = (
|
136 |
mode === "Webcam" ||
|
137 |
(mode === "URL" && !!vlmVideo?.src) || // Check if URL video is loaded
|
138 |
-
(mode === "File" && !!vlmVideo?.src && isVideoFile(uploadedFile
|
139 |
);
|
140 |
|
141 |
if (!isLoaded || !vlmVideo || !isVideoModeActive) {
|
|
|
135 |
const isVideoModeActive = (
|
136 |
mode === "Webcam" ||
|
137 |
(mode === "URL" && !!vlmVideo?.src) || // Check if URL video is loaded
|
138 |
+
(mode === "File" && !!vlmVideo?.src && uploadedFile && isVideoFile(uploadedFile))
|
139 |
);
|
140 |
|
141 |
if (!isLoaded || !vlmVideo || !isVideoModeActive) {
|