Downloads · 30 days
0
NightRiderSp19/AITFTI
AITFTI is a machine learning model from NightRiderSp19. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
APIURL = "https://api-inference.huggingface.co/models/cwwierzbicki/autotrain-dogspeople2-1978966090" headers = {"Authorization": f"Bearer {APITOKEN}"}
Downloads · 30 days
0
Access
Public
Updated Nov 16, 2022
Repo size
—
Likes
0
Public
Click a slice to open those files.
Other1.5 KB · 79%
From the Hugging Face model README
API_URL = "https://api-inference.huggingface.co/models/cwwierzbicki/autotrain-dogspeople2-1978966090" headers = {"Authorization": f"Bearer {API_TOKEN}"}
def query(filename): with open(filename, "rb") as f: data = f.read() response = requests.request("POST", API_URL, headers=headers, data=data) return json.loads(response.content.decode("utf-8"))
output = query("cats.jpg")