I am trying to follow the book and tried “uploader = widgets.FileUpload()
uploader” and then img = PILImage.create(uploader.data[0])
is_cat,_,probs = learn.predict(img)
print(f"Is this a cat?: {is_cat}.“)
print(f"Probability it’s a cat: {probs[1].item():.6f}”)
They both fail in Kaggle Notebook. Are these functions refer to any older version in 2026 as this course is a few years old? I like the way the course is presented but it is hard to follow if the snippets do not work in Kaggle. Is there any suggestion to follow the book in 2026? Thanks.