
Explore AI in the browser by building a Chrome extension that uses a Hugging Face model, while learning machine learning, NLP, and JavaScript.
Explore the basics of artificial intelligence, machine learning, and natural language processing with in-browser demos and Chrome extension previews using Hugging Face and Transformer.js.
Learn to use hugging face and transformer js to run pre-trained NLP models in the browser, powering open-source chat and browser-based AI for chrome extensions.
Explore essential development tools for the course, including Chrome, iTerm2, and Visual Studio Code, and preview extensions and Hugging Face autocomplete to streamline your editing workflow.
Install and configure key VS Code extensions to optimize development for transformers js projects, including eslint, prettier, live server, and huggingface code autocomplete, with optional Python tooling.
Explore JavaScript fundamentals and Chrome extensions to bring AI capabilities to the browser, covering variables, data types, functions, loops, events, promises, async/await, and manifest, background, content, and popup scripts.
Learn to use huggingface autocomplete and huggingface chat, obtain a read API token, integrate it with the vscode extension, and create main.py to see autocompletion and open source chat outputs.
Share your comments, ratings, or reviews to help improve this course and enhance learning experiences for you and future students on the Nerding Isle platform.
Learn how to set up transformers js on your local machine, test chrome extension demos, and run hugging face models for tasks like sentiment analysis and translation using a pipeline.
Learn how to set up questionable, a chrome extension that uses transformers for on-page question-and-answer searches, including cloning the repo, installing npm dependencies, and building to test the pipeline.
Explore the architecture of Chrome extensions, including the manifest configuration, background service workers, and content scripts. Learn how isolated extension pages like popup and options communicate via messaging and storage.
Install transformers dependencies, clone the repo, and set up public Huggingface models with wasm files, then build with webpack watch to load and test the Chrome extension.
Explore manifest file setup for a Chrome extension with manifest version 3, covering permissions, background scripts, icons, and the content security policy to ensure proper deployment.
Understand how webpack config uses plugins to copy public assets, create an inline source map, and avoid obfuscation, while mapping source files to the build output for a Chrome extension.
Explore how the background.js background script powers a Chrome extension, handling messages between the popup and model, tracking progress, and broadcasting status through the Chrome runtime.
Explore the Chrome extension popup as an isolated UI, wire input events to send messages to the background, and compare fast local JavaScript models with remote Hugging Face APIs.
Learn to add a content script to a Chrome extension, inject it into web pages, and debug background and content script messaging with manifest updates and refresh flows.
Implement async messaging across content, background, and popup to drive a progress bar during model initialization. Update the popup with loaded and progress states to show ready or done.
Learn how to use a background script to send messages to a content script, inject a sticky header notification on the page, and display model progress and readiness.
Explore the Hugging Face transformers docs to implement sentiment analysis with predefined tasks. Build and run multilingual, uncased sentiment models locally using Python libraries, and compare to remote models.
Load and convert Hugging Face models for a Chrome extension using onnx runtime and transformers.js, set up the environment, convert to onnx, and integrate the model.
Configure a new NLP model in a Chrome extension by rebuilding with npm watch, updating environment variables, and switching to a Hugging Face sentiment pipeline with tokenizer and model settings.
Explore token classification by testing a model in a Chrome extension, swapping tasks like sentiment and chat, and extracting entities such as dates, people, and places.
Learn to navigate results with keyboard accessibility using aria roles and tab indexes, and handle JSON results from a transformer in a demo page.
Explore question-and-answer practices in a Chrome extension, including manifest and scripting permissions, content and background scripts, inner html extraction, embedding, token limits, and chunking page data for accuracy.
Explore building hotkey commands for a Chrome extension by configuring OS-specific shortcuts in the manifest, using command and control keys, and testing safe defaults across Mac, Windows, and Linux.
Load transformer results from json and display them in the popup, handling capitalization, errors, and empty results. Build result elements with a score badge and color-coded entities to visualize results.
Learn to implement accessible keyboard navigation and aria tagging in a transformer app popup, including autofocus, tabbing through results, aria roles, and screen reader compatibility for WCAG compliance.
Attach event listeners for click and keyboard events (enter and space) to each result so clicking or pressing keys triggers an alert or handler.
Reviewing how we built a Chrome extension with Transformer.js and Hugging Face, including text search, plugin sequencing, a progress bar, and local Hugging Face models, while inviting feedback.
Transform your browser into an AI-powered hub with our course - 'AI in the Browser with JS: Chrome Extensions & Huggingface'. This course is a thrilling ride into the world of Artificial Intelligence, Machine Learning, Natural Language Processing, JavaScript, and Chrome Extensions. It's an adventure where technology meets fun, learning meets application, and you meet the future of browsing.
In this hands-on, project-based course, we'll turn your browser into a powerful AI assistant. With JavaScript as our magic wand, Hugging Face as our secret potion, and Chrome Extensions as our playground, we'll bring the wonders of AI to your fingertips.
What are we building? We're crafting 'Questionable', an intelligent Chrome Extension that transforms every webpage into a knowledgeable guide. With 'Questionable', you can ask any question about the content you're viewing, and get instant answers powered by AI.
This isn't just a course, it's a journey of discovery. We'll explore:
Artificial Intelligence (AI): What is AI? How does it work? How is it changing the world?
Machine Learning: How do machines learn? What is supervised learning, unsupervised learning, and reinforcement learning?
Natural Language Processing (NLP): How do machines understand human language? What are tokenization, named entity recognition, and sentiment analysis?
JavaScript (JS): How does JavaScript power the web? What are variables, functions, loops, and events? How does asynchronous JavaScript work?
Chrome Extensions: How can we enhance our browser's capabilities? What are background scripts, content scripts, and popups? How can we interact with webpages?
Hugging Face and Transformer JS: How can we use pre-trained models in our applications? How does transformer js enable machine learning in the browser?
With the help of Transformer JS, a robust library for machine learning in JavaScript, we'll integrate a Hugging Face model into our Chrome Extension. We'll explore how transformer.js provides a smooth bridge between our application and powerful NLP models.
This course is designed to be fun, engaging, and accessible for all levels. Following the Feynman Method, we break down complex ideas into simple, understandable concepts. Even if you're a beginner, you'll find the journey enjoyable and the destination achievable.
By the end of this course, you'll not only have a working Chrome Extension powered by a state-of-the-art machine-learning model, but you'll also possess a deep understanding of how to harness the power of AI in the browser.
Ready for the ride of a lifetime? Join us on this exhilarating journey, and let's code the future together!