Esempio n. 1
0
 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
Esempio n. 2
0
 def _read_image_from_url(self, url):
     return ImageReader.read_from_url(url)