code: def loader():
      
      url = request.args.get('url')  # read image URL as a request URL param
      response = requests.get(url)  # make request to static image file
      return response.content
docs: Load image from URL, and preprocess for Resnet.