FastAPI service that predicts cat/dog diseases from basic pet info and symptoms.
python run.pyServer runs at http://127.0.0.1:8000.
GET /: health checkGET /models: list model load statusPOST /predict/cat: cat disease predictionPOST /predict/dog: dog disease predictionPOST /predict: auto-detect byAnimal_Type
@'
{
"Animal_Type": "Cat",
"Sex": "Female",
"Breed": "Himalayan",
"Age": 1.9,
"Weight": 5.6,
"Symptom_1": "Vaginal Discharge",
"Symptom_2": "Abdominal Pain",
"Symptom_3": "Lethargy",
"Symptom_4": "Fever",
"Appetite_Loss": 1,
"Vomiting": 0,
"Diarrhea": 0,
"Coughing": 0,
"Labored_Breathing": 0,
"Body_Temperature_in_Celsius": 38.5
}
'@ | Out-File -Encoding utf8 body.json
curl.exe -X POST "http://127.0.0.1:8000/predict/cat" `
-H "Content-Type: application/json" `
--data-binary "@body.json"