Skip to content

Commit

Permalink
Update functional-samples/ai.gemini-on-device-summarization/sidepanel…
Browse files Browse the repository at this point in the history
…/index.js


Shorter and worker-compatible

Co-authored-by: Thomas Steiner <[email protected]>
  • Loading branch information
sebastianbenz and tomayac authored Nov 8, 2024
1 parent bae0dde commit df1b43f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ async function createSummarizer(config, downloadProgressCallback) {
if (canSummarize.available === 'no') {
throw new Error('AI Summarization is not supported');
}
const summarizationSession = await window.ai.summarizer.create(
const summarizationSession = await self.ai.summarizer.create(
config,
downloadProgressCallback
);
Expand Down

0 comments on commit df1b43f

Please sign in to comment.