Image_cat and widgets is undefined

Hello, I’m new to fast.ai. Just trying to get through the first chapter of the book. I created a gradient account and I’m trying to run the following code in 01_intro and I’m getting these errors:

import fastai
print(fastai.__version__)
from fastai.vision.all import *
import fastcore
print(fastcore.__version__)
img = PILImage.create(image_cat())
img.to_thumb(192)

2.2.5
1.3.19

NameError Traceback (most recent call last)
in
4 import fastcore
5 print(fastcore.version)
----> 6 img = PILImage.create(image_cat())
7 img.to_thumb(192)

NameError: name ‘image_cat’ is not defined

#hide_output
import fastai
uploader = widgets.FileUpload()
uploader

NameError Traceback (most recent call last)
in
1 #hide_output
2 import fastai
----> 3 uploader = widgets.FileUpload()
4 uploader

NameError: name ‘widgets’ is not defined

that step seems to show how to upload your image and get prediction on it. You can follow this from the lecture video.

I am having this issue as well, I reported it on GitHub: fast.ai course - NameError: name 'widgets' is not defined on 01_intro · Issue #16 · fastai/fastai1 · GitHub