Downloads · 30 days
0
Xyphitos/fridgeai-spoilage
fridgeai-spoilage is a image classification model from Xyphitos. Use it when you need a label for an image. It is set up for custom.
Binary classifier that detects whether a food item is fresh or spoiled from an image crop.
Downloads · 30 days
0
Access
Public
Updated Apr 7, 2026
Repo size
4.4 MB
Likes
0
Public
Click a slice to open those files.
.pth4.4 MB · 100%
From the Hugging Face model README
Binary classifier that detects whether a food item is fresh or spoiled from an image crop.
import requests
API_URL = "https://api-inference.huggingface.co/models/YOUR_USERNAME/fridgeai-spoilage"
headers = {"Authorization": "Bearer hf_..."}
with open("apple_crop.jpg", "rb") as f:
response = requests.post(API_URL, headers=headers, data=f.read())
print(response.json())
# [{"label": "spoiled", "score": 0.87}, {"label": "fresh", "score": 0.13}]