On utils.py page there is a function called "search_images_bing " which we used to gather data for our bear classifier in lesson 2 and 3. I wanted to try it by my own by using colab but when i type the exact code for gathering data i am receiving the following error : “name ‘L’ is not defined”
The full code for the function is :
I don’t even know what type of object L is so i can’t predefine it before returning it. Also there weren’t any problems on the course despite not defining it as far as i can see.
Thank you for your answer. I installed and imported fastcore now ( i am not sure if it was needed since i imported fastai as "from fastai import * ") but still i am getting the same error “name ‘L’ is not defined”. If it is a predefined class why do i need to define it again and how can i do that ?
!pip install fastai --upgrade
!pip install azure-cognitiveservices-search-imagesearch
from fastai.vision.all import *
from azure.cognitiveservices.search.imagesearch import ImageSearchClient as api
from msrest.authentication import CognitiveServicesCredentials as auth