cli.py not working
Hi, thank you for the project. I deployed it locally in docker container. The web interface provided by app.py works fine. But I cannot use cli.py, because of the following error:
root@cf6e829880ce:/opt/whisper-webui# python3 cli.py --task transcribe --model large-v3 /tmp/whisper-webui/input/test.wav
Traceback (most recent call last):
File "/opt/whisper-webui/cli.py", line 206, in
cli()
File "/opt/whisper-webui/cli.py", line 20, in cli
whisper_models = app_config.get_model_names()
TypeError: ApplicationConfig.get_model_names() missing 1 required positional argument: 'name'
I get this error all the time, no matter on what arguments are used, even without any arguments used. It's weird. Seems something wrong in the code.
Any idea how to solve this?
I just tried cli.py from original https://gitlab.com/aadnk/whisper-webui in the same container and it works.
Could you please have a look at this? I would like use your modified whisper-webui. Thx.
Hi,
Regarding the issue with cli.py not working — this is expected behavior. The file is part of the original author's code, and after forking the project, the only change I made to it was due to a structural change in the languages module. Other than that, the file has remained untouched and is just kept as-is. Since cli.py and the main program app.py have diverged significantly, I’m sorry to say that there are currently no plans to update it. Thank you.