Categorize text into predefined classes for applications like sentiment analysis, spam detection, and topic classification
Basic usage
Example, sentiment analysis:
Copy
import Bytez from 'bytez.js'const sdk = new Bytez("BYTEZ_KEY");const model = sdk.model("AdamCodd/distilbert-base-uncased-finetuned-sentiment-amazon");await model.create()const { error, output } = await model.run("We are furious with the results of the experiment!");console.log({ error, output })