You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If the user closes the streamlit app window after the YouTube video is downloaded but before the Whisper transcription is complete, the audio data will not be deleted from the download file. This produces a leak of unnecessarily increasing data storage requirements over time. To patch, a PR should be made with a fix that will delete any downloaded files after a user closes the window.
In main.py:
Line 398:
""" Downloads audio files """ifinput_method=="YouTube link":
display_status("Downloading audio from YouTube link ....")
audio_file_path=download_video_audio(youtube_link, display_download_status)
[...]
Line 417:
""" Transcribes audio using Whisper which may take 3-10 seconds on average, during which the user could close the window and stop the program, making the removal function below not reached to execute."""display_status("Transcribing audio in background....")
transcription_text=transcribe_audio(audio_file)
display_statistics()
Line 421:
""" Removes downloaded audio files from download folder """delete_download(audio_file_path)
The text was updated successfully, but these errors were encountered:
After the file is read and stored, the original audio file can be deleted. This fixes all cases in #4 that occur when the user closes the app window once the transcription has started.
This bug has been partially mitigated (78feeb7) by deleting the audio files after reading the audio data. This means if the user closes the window after the download is fully complete and processed, the audio files will not be in the downloads folder.
However, this is an incomplete fix as there still remains the case in which a user closes the app window before the full download and processing is complete, leaving data in the downloads folder which will not be deleted automatically.
To patch, a PR should still be made with a fix that will delete any downloaded files after a user closes the window.
If the user closes the streamlit app window after the YouTube video is downloaded but before the Whisper transcription is complete, the audio data will not be deleted from the download file. This produces a leak of unnecessarily increasing data storage requirements over time. To patch, a PR should be made with a fix that will delete any downloaded files after a user closes the window.
In main.py:
Line 398:
Line 417:
Line 421:
The text was updated successfully, but these errors were encountered: