Add support for file size limits in audio and YouTube transcription, and use yt_dlp for video downloads

#6
by alamin655 - opened

This pull request adds support for handling file size limits when transcribing audio files and YouTube videos. The transcribe function has been modified to check the size of the uploaded file and raise an error if it exceeds the limit. Additionally, the yt_dlp library is now used to download YouTube videos and the file size is checked before transcription.

Very cool @alamin655 ! Sorry I didn't see this earlier, but I think the PR adds more or less the same functionality as the latest few commits, mainly https://huggingface.co/spaces/sanchit-gandhi/whisper-large-v2/commit/d790c0bf46e404bd1d567e11e2ec36f4179d6349?

alamin655 changed pull request status to closed

Sign up or log in to comment