abdeladim-s / subsai

🎞️ Subtitles generation tool (Web-UI + CLI + Python package) powered by OpenAI's Whisper and its variants 🎞️
https://abdeladim-s.github.io/subsai/
GNU General Public License v3.0
1.31k stars 107 forks source link

Upload and download via webui? #49

Closed LostXine closed 1 year ago

LostXine commented 1 year ago

Hello,

Thank you for your great work which saves me a lot of time and effort. Please forgive me if I didn't get it correctly, is there a way to upload video/audio files and download sub files via the webui? I think it will make this project easier to use if we can upload and download files directly on webui.

I found the following links to streamlit docs might be helpful: How do you retrieve the filename of a file uploaded with st.file_uploader? How to download a file in Streamlit?

Thanks again, Best,

abdeladim-s commented 1 year ago

Hello @LostXine,

You are welcome. Glad it is being useful for you.

What you asked for is exactly what the webui is built for, actually you don't even need to upload any file, just the absolute path of a media file in your system is enough, next you tune the parameters, you hit transcribe and you export your subtitles file, as easy as that!

Have you tried the webui and found any issues with that ?

LostXine commented 1 year ago

Hi @abdeladim-s

Thank you so much for your reply. Sorry, I didn't make my question clear. I'm running subsai on a remote GPU server and all my audio files are on my local machine. Please correct me if I got it wrong, in such config I have to upload the audio file to the remote server and fetch the subs file manually, which also means using another tool. So I wonder if I could do all file transferring through webui.

Thanks,

abdeladim-s commented 1 year ago

No problem @LostXine, I got your point now.

LostXine commented 1 year ago

Thanks for your detailed explanation.

Thank you so much for your help, have a great one!

abdeladim-s commented 1 year ago

Let me know if you need any other help ?

LostXine commented 1 year ago

Sorry for the late reply, I'll take a look. Thank you so much!

abdeladim-s commented 1 year ago

No problem @LostXine. Take your time.