Summarization involves creating concise summaries of longer texts. Use cases include news summarization, document summarization, and generating abstracts
Basic usage
Generate a summary:
Copy
import Bytez from 'bytez.js'const sdk = new Bytez("BYTEZ_KEY");const model = sdk.model("ainize/bart-base-cnn");await model.create()const { error, output } = await model.run( "The tower is 324 metres (1,063 ft) tall, about the same height as an 81-storey building, and the tallest structure in Paris. Its base is square, measuring 125 metres (410 ft) on each side. It was the first structure to reach a height of 300 metres. Excluding transmitters, the Eiffel Tower is the second tallest free-standing structure in France after the Millau Viaduct.", { max_length: 40 });console.log({ error, output })