Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't download custom huggingface model on Linux #730

Closed
raivisdejus opened this issue May 6, 2024 · 2 comments
Closed

Can't download custom huggingface model on Linux #730

raivisdejus opened this issue May 6, 2024 · 2 comments

Comments

@raivisdejus
Copy link
Collaborator

Installed buzz according to the official instructions

sudo apt-get install libportaudio2
sudo snap install buzz

And tried to add transcription with custom huggingface model

buzz add --model-type huggingface --hfid AiLab-IMCS-UL/whisper-large-v3-lv-late-cv17 --language lv --srt audio.mp3

Getting this error:

  File "/snap/buzz/102/lib/python3.10/site-packages/buzz/cli.py", line 41, in parse_command_line
    parse(app, parser)
  File "/snap/buzz/102/lib/python3.10/site-packages/buzz/cli.py", line 156, in parse
    ModelDownloader(model=model).run()
  File "/snap/buzz/102/lib/python3.10/site-packages/buzz/model_loader.py", line 289, in run
    model_path = huggingface_hub.snapshot_download(
AttributeError: 'NoneType' object has no attribute 'snapshot_download'

Seems to be deliberate configuration https://github.com/chidiwilliams/buzz/blob/main/buzz/model_loader.py#L21

Happy to volunteer to be a Linux tester if that helps :)

@raivisdejus
Copy link
Collaborator Author

Issue that seems to have prompted removal of some functionality for Linux is a security related thing for snaps.

Some description of this is here https://forum.snapcraft.io/t/snap-and-executable-stacks/1812

@raivisdejus
Copy link
Collaborator Author

Issue has been fixed in latest versions

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant