jomasego commited on
Commit
8685779
·
1 Parent(s): ca1f3b0

Fix: Final fix for indentation and syntax errors in app.py and modal_whisper_app.py

Browse files
Files changed (1) hide show
  1. modal_whisper_app.py +0 -2
modal_whisper_app.py CHANGED
@@ -583,8 +583,6 @@ def process_video_analysis(payload: VideoAnalysisRequestPayload):
583
  with open(actual_file, 'rb') as f:
584
  video_bytes = f.read()
585
  print(f"[FastAPI Endpoint] Using original download, size: {len(video_bytes)} bytes")
586
- else:
587
- print(f"[FastAPI Endpoint] No downloaded files found in directory: {os.listdir(tmpdir)}")
588
  except yt_dlp.utils.DownloadError:
589
  # Fallback to httpx for direct links if yt-dlp fails
590
  print(f"[FastAPI Endpoint] yt-dlp failed, falling back to httpx for {video_url}")
 
583
  with open(actual_file, 'rb') as f:
584
  video_bytes = f.read()
585
  print(f"[FastAPI Endpoint] Using original download, size: {len(video_bytes)} bytes")
 
 
586
  except yt_dlp.utils.DownloadError:
587
  # Fallback to httpx for direct links if yt-dlp fails
588
  print(f"[FastAPI Endpoint] yt-dlp failed, falling back to httpx for {video_url}")