Basic usage
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 })