bigtech-bloom-js
v1.0.1
Published
A huggingface api wrapper for bloom.
Downloads
1
Readme
BloomJS [UNIFFICIAL API]
Bloom is a new language model that speaks >40 languages and >10 programming languages. Now, You can use it in your Node.JS application.
const bloom = require('bigtech-bloom-js');
var result = await bloom.raw('Hello World!');
var text = result[0].generated_text;
console.log('AI output: ' + text);
var result2 = await bloom('Hello World!');
console.log('AI non-raw output: ' + result2);
var result3 = await bloom.t0pp('Hello World!');
console.log('T0pp zero-shot output: ' + result3);
WARNING
This package uses an experimental feature called Node.JS fetch, And to stop warnings, All warnings are ignored in your entire process. USE WITH CAUTION!