def embed_url_image(self, image_url, id=None): try: image = ImageReader.read_from_url(image_url) return self.embed_pil_image(image, id) except Exception as e: print(f'Failed to create embeddings for id {id}') print(e) return None
def _read_image_from_url(self, url): return ImageReader.read_from_url(url)