需要install transformers 库 及拥有cuda 核心 pipeline 是hugging face 的基础工具,端到端的工具
1 | from transformers import pipeline |
1 | print(pipeline("sensiment-analysis")("the book seems interesting!")) |
需要注册一个huggingface账号, then You can create a repository from
the CLI (skip if you created a repo from the website)
1 | from transformers import pipeline |
1 | from transformers import SpeechT5Processor, SpeechT5ForTextToSpeech, SpeechT5HifiGan |
- 本文作者: hongbo
- 本文链接: https://hbyecoding.github.io/2023/12/09/huggingface-2023-12-09/
- 版权声明: 本博客所有文章除特别声明外,均采用 MIT 许可协议。转载请注明出处!