Upload files to Gdrive

#14
by satyapragyaa - opened

"This version of the WebUI can automatically save the generated SRT/VTT/Transcript files to Google Drive (requires Google Drive authorization)." - Does not upload files to gdrive automatically even if the drive is mounted and authentication is provided. Dont see any relevant code in the app.py either. Could you please suggest if any explicit action needed

You can specify an output directory for processed files (such as SRT/VTT, TXT transcripts, etc) using the --output_dir flag. There's an example of this in my Google Colab notebook (scroll down to the Google Drive section).

If you run Whisper-Webui locally, you can also just use a local folder with --output-dir(here the files will be stored in C:\Temp\Whisper):

python app.py --input_audio_max_duration -1 --output_dir C:\Temp\Whisper

Finally, you can also use --output_dir with Docker, though in that case you must also use the mount directive (here it will store the files in /home/administrator/.cache/whisper):

sudo docker run -d --gpus all -p 7860:7860 \
--mount type=bind,source=/home/administrator/.cache/whisper,target=/root/.cache/whisper \
--restart=on-failure:15 registry.gitlab.com/aadnk/whisper-webui:latest \
app.py --input_audio_max_duration -1 --server_name 0.0.0.0 --auto_parallel True \
--default_vad silero-vad --default_model_name large-v2 --output_dir /root/.cache/whisper/output

If you have a Google Drive mounted, you should be able to use either of these two last methods by specifying --output-dirto be a directory on that mounted drive.

Sign up or log in to comment