This is a multipurpose API created using Python and FastAPI.
This contains all my machine learning and deep learning models. Feel free to use!
This API is under constant development, more models and endpoints will be added soon!
-
(A CNN based Image classification models, that classifies for 70 different dog breeds with an accuracy of ~95%)
Training Notebook: https://www.kaggle.com/code/harshpriye/dogs-breed-prediction-cnn-inceptionv3/notebook
-
(takes Image formData as input)
Example JS code:const BASE_URL='https://mlapi.online'; const file = event.target.files[0]; //image blob const formData = new FormData(); formData.append('image', file); fetch(`${BASE_URL}/dog-breed-identifier/upload`,{ method:"POST", body:formData }) .then(res=>res.json()) .then(res=>{ //write further logic }) .catch(error=>{ console.log(error); //write further logic })
-
(takes a vaild URL string as input)
Example JS code:const BASE_URL='https://mlapi.online'; fetch(`${BASE_URL}/dog-breed-identifier/url`,{ method:"POST", headers: { 'Content-Type': 'application/json' }, body:JSON.stringify({"url":"YOUR URL"}) }) .then(res=>res.json()) .then(res=>{ // further logic }) .catch(error=>{ // further logic })