m1guelpf / yt-whisper

Using OpenAI's Whisper to automatically generate YouTube subtitles
MIT License
1.37k stars 140 forks source link

Use tempfile.gettempdir() to get the path of temp folder #4

Closed carlo697 closed 2 years ago

carlo697 commented 2 years ago

I was having problems running the CLI (I'm using windows): image

I fixed it by using the path returned by tempfile.gettempdir() as the "tmp" folder.

https://stackoverflow.com/questions/847850/cross-platform-way-of-getting-temp-directory-in-python