Fixed issues with code.

#8
by alamin655 - opened

This commit updates the existing code to the latest version, which includes the following changes:

  • Importing the os and typing modules, which are required by the latest implementation but were missing in the original code.
  • Using the correct error type (gr.InterfaceError) for the transcribe function.
  • Reading the audio file using the open function instead of ffmpeg_read in the yt_transcribe function.
  • Added a new download_yt_audio function to download audio from YouTube videos.
  • Tested the updated code in Google Colab and verified that it works correctly.
Cannot merge
This branch has merge conflicts in the following files:
  • app.py

Sign up or log in to comment