Open Bklieger opened 2 months ago
This bug has been partially mitigated (https://github.com/Bklieger/groqnotes/commit/78feeb745c61cd4d818527cfcaf8c45c53e14b14) 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: