Views
No views yet
model.py — tiny CNNmodel.safetensors — weights (create with python generate_weights.py)inference.py — load → preprocess → predicthandler.py — Endpoint handler (EndpointHandler)app.py — Gradio Space UIrequirements.txt, .gitattributes, LICENSE1pip install -r requirements.txt
2python generate_weights.py
3python app.py
4
5Call via Hosted Inference API (if enabled) or Endpoint
6# Replace with your endpoint URL or model API URL
7API=https://api-inference.huggingface.co/models/ORG/REPO
8curl -X POST "$API" \
9 -H "Authorization: Bearer $HF_TOKEN" \
10 -H "Content-Type: application/json" \
11 -d '{"inputs": {"image_base64": "<PUT_BASE64_IMAGE_HERE>"}}'
12