Skip to content
/ ml-api Public

All in One API for all my ML/DL models created using FastAPI

Notifications You must be signed in to change notification settings

harshpx/ml-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

All-in-one API for all my Machine Learning Models

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!

Tech Stack: Python, FastAPI, Tensorflow, Scikit-Learn, OpenCV, NLTK etc.

Models currently available

API Endpoints

  • /dog-breed-identifier/upload

    (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
    })
    
  • /dog-breed-identifier/url

    (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
    })
    

About

All in One API for all my ML/DL models created using FastAPI

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published