In this activity, you’ll explore the power of image inpainting to transform or repair images. Instead of generating an image solely from text, you’ll provide an existing image and a corresponding mask (where white areas indicate regions to be modified or restored). By supplying a textual prompt that describes the desired change, the AI model fills in the masked regions to create a seamless, restored, or altered image. This exercise is perfect for learning how to guide the creative process beyond full image synthesis—enabling detailed editing and repair of existing visuals.
A program that learns a "fingerprint" for each of 7 languages (English, Spanish, Italian, French, German, Hindi and Hinglish) from one paragraph each. Then it reads a mystery message, finds the fingerprint that matches best, and says which language it is, with the clues to prove it. At the end you play against it: can you guess as well as the detective? Google Translate's "Detect language" and keyboard apps that switch language by themselves use the same idea.
A program that reads 12 short articles once, builds an index of every word (like the index at the back of a book), and then answers a search instantly. You will write three rankers: COUNT, TF and TF-IDF, and watch them compete on 10 searches. Google, library catalogues and website search bars all start from the same idea.
This activity guides you through the process of integrating a Hugging Face API key into your Python project in a secure manner. You'll start by creating a Hugging Face account, completing your profile, and verifying your email. Once your account is set up, you'll generate a read-only access token and securely store it in a config.py file. To protect your sensitive information, you'll also learn how to configure Git to ignore the file containing your API key. Finally, you'll integrate the API key into your main Python script, ensuring a smooth and secure connection to Hugging Face services.
A program that compares what a person typed with every dish on a menu, counts how many single-letter fixes it would take, and suggests the closest dish. You will then upgrade it twice: neighbouring keys on the keyboard count as a smaller mistake, and two swapped letters count as one mistake. Food apps and search engines do the same job all day long.
A program that reads a review, gives every feeling word points (good adds, terrible takes away), and adds them up into a mood score. It handles "not good" (a negation) and "very slow" (an intensifier), and it shows which words decided the result. Shopping sites and food apps do the same job on thousands of reviews.