Пример #1
0
 def test_embed_one_image_from_localfs(self):
     image_file = 'tests/data/toddler-flowers.jpeg'
     api = ClarifaiApi()
     if os.path.exists(image_file):
         with open(image_file, 'rb') as fb:
             response = api.embed_images(fb)
             self.assertTrue(response)