Classify text into categories not seen during training for applications like intent detection, content moderation, and dynamic classification
Basic usage
Send a text input and a set of candidate labels to receive classification results:
Copy
import Bytez from 'bytez.js'const sdk = new Bytez("BYTEZ_KEY");const model = sdk.model("facebook/bart-large-mnli");await model.create()const { error, output } = await model.run({ text: "One day I will see the world", candidate_labels: ["travel", "cooking", "dancing"]});console.log({ error, output })