Learn practical skills, build real-world projects, and advance your career
!pip install -q fastai2
!pip install -q azure-cognitiveservices-search-imagesearch
!pip install -q jovian
#hide
# from utils import *
from fastai2.vision.widgets import *

Below is the utils file which is not included via pip distribution, ignore if youre running from fastai's repo

from fastai2.vision.all import *
from azure.cognitiveservices.search.imagesearch import ImageSearchClient as api
from msrest.authentication import CognitiveServicesCredentials as auth
def search_images_bing(key, term, min_sz=128):
    client = api('https://api.cognitive.microsoft.com', auth(key))
    return L(client.images.search(query=term, count=150, min_height=min_sz, min_width=min_sz).value)

Gathering data