Quazim0t0 commited on
Commit
20197c2
·
verified ·
1 Parent(s): da86406

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 || null)) // Check if file is video
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) {