How To Deploy Machine Learning Models Using FastAPI-Deployment Of ML Models As API’s

แชร์
ฝัง
  • เผยแพร่เมื่อ 18 พ.ย. 2020
  • github :github.com/krishnaik06/FastAPI
    FastAPI is a modern, fast (high-performance), web framework for building APIs with Python 3.6+ based on standard Python type hints.Sebastian is the creator of FastAPI, an open-source Python web framework for building production-ready APIs quickly and easily: with autocompletion everywhere in your editor, automatic type checks, as little code as possible, automatic API documentation, and several other features.
    ⭐ Kite is a free AI-powered coding assistant that will help you code faster and smarter. The Kite plugin integrates with all the top editors and IDEs to give you smart completions and documentation while you’re typing. I've been using Kite for a few months and I love it! www.kite.com/get-kite/?...
    All Playlist In My channel
    FASTAPI playlist: • FastAPI Deployment Tut...
    Interview Playlist: • Machine Learning Inter...
    Complete DL Playlist: • Complete Road Map To P...
    Julia Playlist: • Tutorial 1- Introducti...
    Complete ML Playlist : • Complete Machine Learn...
    Complete NLP Playlist: • Natural Language Proce...
    Docker End To End Implementation: • Docker End to End Impl...
    Live stream Playlist: • Pytorch
    Machine Learning Pipelines: • Docker End to End Impl...
    Pytorch Playlist: • Pytorch
    Feature Engineering : • Feature Engineering
    Live Projects : • Live Projects
    Kaggle competition : • Kaggle Competitions
    Mongodb with Python : • MongoDb with Python
    MySQL With Python : • MYSQL Database With Py...
    Deployment Architectures: • Deployment Architectur...
    Amazon sagemaker : • Amazon SageMaker
    Please donate if you want to support the channel through GPay UPID,
    Gpay: krishnaik06@okicici
    Telegram link: t.me/joinchat/N77M7xRvYUd403D...
    Please join as a member in my channel to get additional benefits like materials in Data Science, live streaming for Members and many more
    / @krishnaik06
    Please do subscribe my other channel too
    / @krishnaikhindi
    Connect with me here:
    Twitter: / krishnaik06
    Facebook: / krishnaik06
    instagram: / krishnaik06
    #FASTAPI

ความคิดเห็น • 83

  • @nginfrared
    @nginfrared 3 ปีที่แล้ว +10

    I stumbled upon your channel and I think it is one of the best things I have seen recently. Thank you for making things so simple to understand.

  • @meshachdamilare
    @meshachdamilare 3 ปีที่แล้ว +3

    Thanks sir for all you do. I hope the next video on this series will be on deploying machine learning model on cloud platform usingfastapi

  • @saidurgakameshkota1246
    @saidurgakameshkota1246 3 ปีที่แล้ว +5

    Excellent tutorial krish. Please continue incremental learning playlist

  • @soudaminipanda
    @soudaminipanda 2 ปีที่แล้ว +2

    Very good explanation. Detail oriented and covering all necessary details. Great Video.

  • @shivadumnawar7741
    @shivadumnawar7741 3 ปีที่แล้ว +3

    This tutorial helped me in right time. Thank you krish sir.

  • @user-or7ji5hv8y
    @user-or7ji5hv8y 3 ปีที่แล้ว +1

    This is so clear. Great example.

  • @ShahnawazKhan-xl6ij
    @ShahnawazKhan-xl6ij 3 ปีที่แล้ว +7

    Great sir Fast Api is much simple than Flask Frame work

  • @ShashankGurnalkar
    @ShashankGurnalkar 2 ปีที่แล้ว +3

    Thank you for the session.
    Question: how to work with pydantic when we need to handle exceptions? For example right now you are taking 4 features, but what if any feature is missing in the input?

  • @anindhamahalanabish9351
    @anindhamahalanabish9351 3 ปีที่แล้ว +1

    learned a lot from you waiting for your next video

  • @footballforfun2054
    @footballforfun2054 3 ปีที่แล้ว +2

    thank you, I always wanted to learn fastAPI. DREAM COME TRUE. Pls.... make ur nxt video soon, I want to learn how to connect API with front-end

  • @kavithamangalagiri2495
    @kavithamangalagiri2495 ปีที่แล้ว

    In detailed explanation. Thank you sir.

  • @zoroXgamings
    @zoroXgamings 3 ปีที่แล้ว

    done with my TensorFlow deep learning model for custom image classification , created fast API to test it in local, now time to deploy it in AWS

  • @user-or7ji5hv8y
    @user-or7ji5hv8y 3 ปีที่แล้ว

    What do you recommend if you also want to incorporate html and css? Python Eel?

  • @saidurgakameshkota1246
    @saidurgakameshkota1246 3 ปีที่แล้ว +5

    Asynchronous server gateway interface

  • @MrAyandebnath
    @MrAyandebnath 3 ปีที่แล้ว

    I saved my model in h5 format. Now I want load the model using "model=tf.keras.models.load_model(filepath.h5)" in FastAPI. But I am getting error while running API using conda virtual env. What should I do? @Krish

  • @SauravdasDas
    @SauravdasDas วันที่ผ่านมา

    thanks for guidance..i'll apply your approach

  • @shaonsikder556
    @shaonsikder556 3 ปีที่แล้ว

    What if I want to pass image in POST? what will be basmodel function then?

  • @ajanieniola9172
    @ajanieniola9172 3 ปีที่แล้ว

    Can we use file up to predict if it's a bank note through the api

  • @bidemiaduke5160
    @bidemiaduke5160 ปีที่แล้ว +1

    Thank you Krish for all your tutorials. Please, can someone help me. I made machine learning models in its own environment in anaconda and I want to deploy them using flask but I cant get either pickle or joblib to work in anaconda environment. Does anyone know what I'm doing wrong please?

  • @akshayingole6442
    @akshayingole6442 3 ปีที่แล้ว

    Sir can you please make Probability for Machine Learning Playlist. I watch your Statistics for Machine Learning and it is very helpful to me but I can't find the playlist for Probability for Machine Learning. So Please Sir can you make playlist for Probability for Machine Learning.

  • @sunildhakad5219
    @sunildhakad5219 3 ปีที่แล้ว

    Sir, is it okay to learn fast api even if I don't know django or flask , i only learned ML till now, please suggest,
    Thank you krish sir

  • @mohdabdulazeem4863
    @mohdabdulazeem4863 3 ปีที่แล้ว +1

    Sir can you please help us in knowing how to consume this api in other applications??

  • @snehitvaddi
    @snehitvaddi 3 ปีที่แล้ว

    Krish, will Pickle file format works for Keras CNN's aswell??

  • @s.husain6125
    @s.husain6125 3 ปีที่แล้ว +2

    Verry nice sir how to depoly cotton disease prediction model using fast api

  • @vandriichuk
    @vandriichuk 3 ปีที่แล้ว

    Hi, i can't to check predict from browser without swagger... Can you help me?

  • @ultrainstinctcoder6126
    @ultrainstinctcoder6126 3 หลายเดือนก่อน

    good video just one question what to do when you have large json file with same data how to talk with API when you have a lot of client

  • @sankaraveld2091
    @sankaraveld2091 2 ปีที่แล้ว

    how can we store the predicted values in database?can somebody please help with thiz?

  • @harishnagpal21
    @harishnagpal21 3 ปีที่แล้ว +1

    Hi Krish. Nice video. One query, you created the model in Jupyter note book. How did you take that to FAST API. Do we need to make a pickle file and then use in in FAST API? Thanks

    • @anshXR
      @anshXR 2 ปีที่แล้ว

      Yup. First save the model as a pickle file then u can use it in FastAPI by importing pickle

  • @plexus1942
    @plexus1942 2 ปีที่แล้ว

    Krisk i have this error : RuntimeError: uvloop does not support Windows at the moment
    How can i fix it ?

  • @replicasensei1204
    @replicasensei1204 2 ปีที่แล้ว

    Thank you for this tutorial

  • @tripurarajavarapu2126
    @tripurarajavarapu2126 ปีที่แล้ว

    Can we deploy two different models at a time?

  • @vikassalaria24
    @vikassalaria24 3 ปีที่แล้ว +3

    Getting this error when giving command:uvicorn app:app --reload in anaconda prompt. Using vscode
    Error:
    classifier=pickle.load(pickle_in)
    ModuleNotFoundError: No module named 'sklearn.svm._classes'

    • @anaswahid8520
      @anaswahid8520 3 ปีที่แล้ว

      Same here
      Have you solved it?

    • @SoumendraBagh
      @SoumendraBagh 3 ปีที่แล้ว

      @@anaswahid8520 Pickle is causing error. I used joblib instead.
      Save and Load the model with *joblib* :
      filename = 'saved_joblib_model.sav'
      loaded_model = joblib.load(filename)

  • @shivalingachalere2783
    @shivalingachalere2783 ปีที่แล้ว

    Sir please continue uploading fastapi videos.

  • @sureshnathann8360
    @sureshnathann8360 3 ปีที่แล้ว

    Very nice subject

  • @creator6561
    @creator6561 หลายเดือนก่อน

    Can someone tell me where is he loading the model , is he loading it on the local machine ?

  • @rajav4144
    @rajav4144 7 หลายเดือนก่อน

    Does it work the same for Mac os

  • @parakhchaudhary7453
    @parakhchaudhary7453 3 ปีที่แล้ว

    Hey,
    How do i use a data member of type datetime in BankNote basemodel class?

    • @Jnalytics
      @Jnalytics 2 ปีที่แล้ว

      I have similar issues, do you have an idea how I can fastapi with type str in bank Chun_Customer model?

  • @chekrasena
    @chekrasena 3 ปีที่แล้ว +1

    When will AI-IOT, Augumanted-Reality,Virtual-Reality iNeuron Community batch eagerly waiting

  • @dharanidharguntupalli3305
    @dharanidharguntupalli3305 2 ปีที่แล้ว +1

    Hi sir, I have deployed yolov4 using darknet on my local machine. Now I want to deploy it using FastAPI. I just know what is what in FastAPI and just saw this video. Can you please suggest tips so that I can successfully deploy it?

    • @sebas72859
      @sebas72859 2 ปีที่แล้ว

      have you get some info? I deploy yolor on Django, but I think the process runs slowly, I want to probe FAST API

  • @mdmoinuddinkamal3412
    @mdmoinuddinkamal3412 5 หลายเดือนก่อน

    very good session .greet like as boos ...

  • @shahnawazkhan1636
    @shahnawazkhan1636 3 ปีที่แล้ว

    sir please make a video on model deployment by FastApi on jupyter notebook IDE.

  • @souravdey8236
    @souravdey8236 2 ปีที่แล้ว

    What if the pickl file is large?

  • @atharvagangshettiwar8920
    @atharvagangshettiwar8920 ปีที่แล้ว

    Really thanks!!

  • @zulfiqarali-zq1rg
    @zulfiqarali-zq1rg 2 ปีที่แล้ว

    You are great sir

  • @jayvirsinhchhasatiya
    @jayvirsinhchhasatiya ปีที่แล้ว

    How to deploy this model as html. As u deploy model using flask.

  • @hariprasath7050
    @hariprasath7050 6 หลายเดือนก่อน

    Hi Sir you did great explain but you said at end of video you will continue to upload deploy deep learning model and and return HTML file continuation not posted till please make this playlist remaining video to finish

  • @godse54
    @godse54 3 ปีที่แล้ว +1

    krish pls make next video in which we are using html as our front end for showing result instead of swagger api. pls make this vedio ASAP as i can then deploy it on cloud and can add link into my resume

    • @MrAyandebnath
      @MrAyandebnath 3 ปีที่แล้ว

      This is highly required. PleASE MAKE A VIDEO

  • @sompallidineshkumar6548
    @sompallidineshkumar6548 3 ปีที่แล้ว +2

    Good evening sir , it's not correct time to ask this question but it's important for me
    Is SAP is good for career I mean for long term
    If yes please give me reply sir
    It is important for me

  • @ankitmehra16
    @ankitmehra16 ปีที่แล้ว

    very very helpful

  • @AdityaYadav-qf4qm
    @AdityaYadav-qf4qm ปีที่แล้ว

    Can i create these api' sin vs code?

  • @user-or7ji5hv8y
    @user-or7ji5hv8y 3 ปีที่แล้ว

    somehow the prediction part got an Internal Server Error. not sure if anyone else had the same issue.

    • @teapotdiaries7
      @teapotdiaries7 หลายเดือนก่อน

      same for me, I used other models such as SVC and it works.

  • @abhicasm9237
    @abhicasm9237 ปีที่แล้ว

    I don't know what you mean by deploy, but I dont think deploy means running it on localhost.

  • @zaibalizaibali
    @zaibalizaibali 2 หลายเดือนก่อน

    Gate name? Please explain

  • @disharamchandani1786
    @disharamchandani1786 3 ปีที่แล้ว

    Which ide is this which is of black colour?

  • @jcatlantis
    @jcatlantis ปีที่แล้ว

    Very nice content but i think you should speak slowly for most easier understanding

  • @tanushreenagar3116
    @tanushreenagar3116 3 ปีที่แล้ว

    Nice thnk you

  • @aqibfayyaz1619
    @aqibfayyaz1619 3 ปีที่แล้ว

    Thank you

    • @Jnalytics
      @Jnalytics 2 ปีที่แล้ว

      Please how can I go about deploying CSV files with categorical features. When I used the same workflow on my model,I am getting a value error: could not convert "France" to integer. I have done preprocessing with LabelEncoder and OneHotEncoder but still get same error. Please help out!

  • @soonapaana24
    @soonapaana24 3 ปีที่แล้ว

    Asynchronous Server Gateway Interface

  • @rama_bhuyan
    @rama_bhuyan 2 ปีที่แล้ว

    Hello,
    I have a query, hoping for a reply .
    I have aYOLOv3 Model, Deployed using Fast API but the issue I am getting is; when I call the model through API the inferencing detection accuracy decreasing.
    for example :
    If a image have 5 object of a class.
    If I am inferencing without API- I could detect all the Objects.
    If I am inferencing using API- I miss 1 or 2 objects
    Could you please help with the possible reason and how to overcome.
    Thankyou
    Rama

  • @lourdvicalcindor
    @lourdvicalcindor 2 ปีที่แล้ว

    Nice !

  • @snehitvaddi
    @snehitvaddi 3 ปีที่แล้ว

    Krish sir, please make a video of *"Deploying Streamlit on GCloud"* because Github is not supporting files more than 100MB but my model.h5 file is more than 100MB. Please make a tutorial on it... 😐😐😐😐😐

    • @vineetjha400
      @vineetjha400 3 ปีที่แล้ว +2

      Use GIT LFS for that.

  • @narasa12
    @narasa12 หลายเดือนก่อน

    Asynchronous service gateway interface...

  • @RahulPrajapati-jg4dg
    @RahulPrajapati-jg4dg 3 ปีที่แล้ว

    when you uploading deployment of deep learning model using this fastapi

  • @jdhshs12
    @jdhshs12 3 ปีที่แล้ว

    Cool

  • @theJS_developer
    @theJS_developer 3 ปีที่แล้ว +2

    First Comment

  • @RavinderRam
    @RavinderRam 3 ปีที่แล้ว +2

    second

  • @Nudaykumar
    @Nudaykumar 3 ปีที่แล้ว

    Asynchronous server gateway interface