mlhubber / mlhub

Machine Learning Model Repository Hub Command Line Tool.
MIT License
20 stars 12 forks source link

Filename with imbedded spaces not handled correctly #279

Open Ting-TT opened 4 months ago

Ting-TT commented 4 months ago
$ ml translate openai /Users/tt/Desktop/COMP4560/ko\ audio.mp3               

Usage: translate [OPTIONS] [FILENAME]
Try 'translate --help' for help.

Error: Got unexpected extra argument (audio.mp3)

So we have to quote the file path manually like $ ml translate openai "/Users/tt/Desktop/COMP4560/ko\ audio.mp3" to avoid running into the error.

But if we use Whisper command (e.g. $ whisper /Users/tt/Desktop/COMP4560/ko\ audio.mp3 --model small), it works fine without having quotation marks around the file path.