Kabanosk/whisper-website

Internal server issue when converting audio to text

Closed this issue · 7 comments

Describe the bug
A clear and concise description of what the bug is the audio file is working ok on the browser , when the srt file download , file have a internal server error written in it

OS (please complete the following information):

  • [e.g. iOS]
    Windows

Additional context
Add any other context about the problem here.
2023-07-27 14 43 17

  1. Try to give it different name
  2. (optional) you can remove lines 136 and 137 from the src/main.py file, but I am not 100% sure if that will work

Edit: Can you please write if any of that solutions works?

give a different name to what ? please elaborate

okay , so after removing lines 136 and 137 from the src/main.py file , it's working perfectly.

Edit: Can you please write if any of that solutions works?

It looks from the above screenshots and a quick look at code that you forgot to close that file at line 136 ... that's why the error says the file is being used by other process. Just try closing it and it will work.

Hi! Sorry you had to wait - I had to pass my exams. Can you check if the code is working now? @avish-alumel @ilovefreesw

@Kabanosk looks like you fixed this because I could not reproduce this error locally

Thank you for the information @Maduflavins !