YAML Metadata Warning:empty or missing yaml metadata in repo card
Check out the documentation for more information.
MyModel โ Image API
This model accepts an image (base64-encoded) through the Hugging Face Inference API
and returns the output of the .pt PyTorch model.
Example Usage (Python)
import base64, requests
with open("test.jpg", "rb") as f:
img = base64.b64encode(f.read()).decode()
url = "YOUR_ENDPOINT_URL"
headers = {"Authorization": "Bearer YOUR_HF_TOKEN"}
resp = requests.post(url, json={"image": img}, headers=headers)
print(resp.json())
---
license: mit
---
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐ Ask for provider support