huggingface.js(JavaScript库集合)可管理模型仓库并调用推理服务
huggingface.js 汇集了带 TypeScript 类型的 JavaScript 库,可创建或删除 Hugging Face 仓库、上传文件,并调用模型推理服务。
原文怎么说
replicate, cohere … messages: [ { role: "user", content: "Hello, nice to meet you!", }, ], max_tokens: 512, temperature: 0.5, }); await inference.textToImage({ model: "black-forest-labs/FLUX.1-dev", provider: "replicate", inputs: "a picture of a green bird", }); // and much more… Hugging Face JS libraries This is a collection of JS libraries to interact with the Hugging Face API, with TS types included. - @huggingface/hub: Interact with huggingface.co to create or delete repos and commit / download files -
github.com · 打开原文 ↗