Skip to content

Instantly share code, notes, and snippets.

Created August 10, 2020 00:33
What would you like to do?
Python example for
import requests
import json
url = ''
files = {'image':('1.jpg', open('1.jpg', 'rb'))}
r =, files=files)
result = json.loads(r.content)
print("This image is classified as "+str(result["data"]["classification"]))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment