GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - hammadhttps/pet-care-apis

BranchesTags
Open more actions menu

Latest commit

 

History

15 Commits
15 Commits

Folders and files

NameName
Last commit message
Last commit date
app
app
 
 
models
models
 
 
.gitignore
.gitignore
 
 
.python-version
.python-version
 
 
Procfile
Procfile
 
 
README.md
README.md
 
 
XGBoostModel.py
XGBoostModel.py
 
 
requirements.txt
requirements.txt
 
 
run.py
run.py
 
 
runtime.txt
runtime.txt
 
 

Repository files navigation

Pets Disease Prediction API

FastAPI service that predicts cat/dog diseases from basic pet info and symptoms.

Run locally

python run.py

Server runs at http://127.0.0.1:8000.

Endpoints

  • GET /: health check
  • GET /models: list model load status
  • POST /predict/cat: cat disease prediction
  • POST /predict/dog: dog disease prediction
  • POST /predict: auto-detect by Animal_Type

Example request (cat)

PowerShell (recommended)

@'
{
  "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"

About

pet-care-apis.onrender.com

Topics

apisdata-validation-and-error-handlingfastapimachine-learningml-deployment-developers-experimentpydantic-modelspythonvalidation

Resources

Readme
Activity

Stars

0 stars

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.