Spaces:
Runtime error
Add support for file size limits in audio and YouTube transcription, and use yt_dlp for video downloads
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?
@sanchit-gandhi Hey, I added a new PR as there were some issues in this commit https://huggingface.co/spaces/sanchit-gandhi/whisper-large-v2/commit/d790c0bf46e404bd1d567e11e2ec36f4179d6349.