Summarizer API
The downloadprogress event of the CreateMonitor interface is fired when progress is made on the AI model download.
Syntax
Use the event name in EventTarget/addEventListener:
addEventListener("downloadprogress", (event) => { })
Alternatively, assign to the event handler property of the interface:
ondownloadprogress = (event) => { }
Event type
A ProgressEvent. Inherits from Event.
ProgressEvent
Examples
See the main CreateMonitor page for an example.
Specifications
Browser compatibility
See also
- Using the Summarizer API
- Web AI demos on chrome.dev.
来源:MDN Web Docs / Mozilla 贡献者 · 作者与贡献记录 · CC BY-SA 2.5。离线整理了版式、链接和媒体显示。
