jhj0517 / Whisper-WebUI

A Web UI for easy subtitle using whisper model.
Apache License 2.0
1.12k stars 170 forks source link

After Mic records a piece of audio, after the first generation is completed, the second click to generate will fail, prompting that the file does not exist. #327

Open 1247862674 opened 1 day ago

1247862674 commented 1 day ago

Source files under /tmp/gradio are deleted after the first generation

1247862674 commented 1 day ago

To create a public link, set share=True in launch(). Traceback (most recent call last): File "/data/miniconda3/pkgs/whisper-webui/lib/python3.10/site-packages/gradio/processing_utils.py", line 536, in audio_from_file audio = AudioSegment.from_file(filename) File "/data/miniconda3/pkgs/whisper-webui/lib/python3.10/site-packages/pydub/audio_segment.py", line 651, in from_file file, close_file = _fd_or_path_or_tempfile(file, 'rb', tempfile=False) File "/data/miniconda3/pkgs/whisper-webui/lib/python3.10/site-packages/pydub/utils.py", line 65, in _fd_or_path_or_tempfile fd = open(fd, mode=mode) FileNotFoundError: [Errno 2] No such file or directory: '/tmp/gradio/8b96c03f439af9d876c6206974c5ca140f7637f654b57f3f45074fabaed89087/audio.wav'