This PR adds more functionality for deleting audio.
functionality for deleting output audio files has been added.
option for deleting all audio files (both intermediate audio files and output audio files) has been added.
On the frontend side, each deletion option has been relegated to its own accordion under the delete audio subtab.
automated deletion of temporary gradio files have been added to the app implementation. Temporary files cached by gradio will be deleted whenever a new instance of the app is opened, closed or refreshed. This has the potential side effects of removing files used by one instance of the app when another one is opened (eg in another browser tab). In the future this could be mitigated by combining automated refreshing of each tab with loading of last state whenever a session is refreshed.
Additionally, this PR also updates the folder structure used for storing generated audio files
root folder name now is audio
output audio files are stored in output
intermediate audio files are stored in intermediate
This PR also fixes some bugs:
helper function meant for updating gradio components now never return singleton tuples of instances of gradio components or update dictionaries, as gradio has a bug where updates are ignored in that case. Instead a single instance of the given gradio component or update dictionary is returned.
whenever a multiselect dropdown is updated with a new value then its current value is set to [], as otherwise the new value might be incorrectly selected when it is added to the dropdown.
This PR adds more functionality for deleting audio.
delete audio
subtab.Additionally, this PR also updates the folder structure used for storing generated audio files
audio
output
intermediate
This PR also fixes some bugs:
[]
, as otherwise the new value might be incorrectly selected when it is added to the dropdown.