CoolFace
Apppublic

jianna4/kenyan_Artifacts

sourceHugging Faceapache-2.0updated 10mo agoView on Hugging Face
0likes
App README

Kenyan Artifacts Classifier

This Space uses FastAPI + ONNXRuntime to classify Kenyan cultural artifacts. Upload an image and choose a model (kikuyu or maasai) to get predictions.

Cultural Classification API (FastAPI + ONNX + Docker)

This is a HuggingFace Space using FastAPI, Docker, and ONNX Runtime to classify Kikuyu and Maasai cultural items.


๐Ÿš€ API Endpoints

GET /

Health check + Welcome message.

POST /predict

Upload an image and specify the model:

Body Parameters

  • โ€”file (image) โ€“ required
  • โ€”model_choice: "kikuyu" or "maasai"

Example (Python):

python
import requests

url = "http://localhost:7860/predict"

files = {
    "file": open("test.jpg", "rb")
}

data = {
    "model_choice": "kikuyu"
}

r = requests.post(url, files=files, data=data)
print(r.json())