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

Поделиться
HTML-код
  • Опубликовано: 2 окт 2024
  • github :github.com/kri...
    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/g...
    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/...
    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

Комментарии • 84

  • @saidurgakameshkota1246
    @saidurgakameshkota1246 3 года назад +5

    Excellent tutorial krish. Please continue incremental learning playlist

  • @shivadumnawar7741
    @shivadumnawar7741 3 года назад +3

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

  • @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

  • @nginfrared
    @nginfrared 3 года назад +11

    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.

  • @ShahnawazKhan-xl6ij
    @ShahnawazKhan-xl6ij 3 года назад +9

    Great sir Fast Api is much simple than Flask Frame work

  • @saidurgakameshkota1246
    @saidurgakameshkota1246 3 года назад +5

    Asynchronous server gateway interface

  • @anindhamahalanabish9351
    @anindhamahalanabish9351 3 года назад +1

    learned a lot from you waiting for your next video

  • @SauravdasDas
    @SauravdasDas 2 месяца назад

    thanks for guidance..i'll apply your approach

  • @s.husain6125
    @s.husain6125 3 года назад +2

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

  • @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

  • @theJS_developer
    @theJS_developer 3 года назад +2

    First Comment

  • @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?

  • @zulfiqarali-zq1rg
    @zulfiqarali-zq1rg 2 года назад

    You are great sir

  • @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

  • @atharvagangshettiwar8920
    @atharvagangshettiwar8920 Год назад

    Really thanks!!

  • @sureshnathann8360
    @sureshnathann8360 3 года назад

    Very nice subject

  • @mohdabdulazeem4863
    @mohdabdulazeem4863 3 года назад +1

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

  • @narasa12
    @narasa12 4 месяца назад

    Asynchronous service gateway interface...

  • @bidemiaduke5160
    @bidemiaduke5160 2 года назад +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?

  • @soudaminipanda
    @soudaminipanda 2 года назад +2

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

  • @dharanidharguntupalli3305
    @dharanidharguntupalli3305 3 года назад +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 3 года назад

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

  • @chekrasena
    @chekrasena 3 года назад +1

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

  • @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

  • @Krish_Melodies
    @Krish_Melodies Месяц назад

    Can you make a video on making a fast api for Pytesseract for OCR . It would be helpful

  • @zaibalizaibali
    @zaibalizaibali 5 месяцев назад

    Gate name? Please explain

  • @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)

  • @hariprasath7050
    @hariprasath7050 9 месяцев назад

    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

  • @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

  • @GameDevForLife
    @GameDevForLife 6 месяцев назад

    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

  • @plexus1942
    @plexus1942 2 года назад

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

  • @vandriichuk
    @vandriichuk 3 года назад

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

  • @jcatlantis
    @jcatlantis 2 года назад

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

  • @abhicasm9237
    @abhicasm9237 Год назад

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

  • @creator6561
    @creator6561 4 месяца назад

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

  • @RahulPrajapati-jg4dg
    @RahulPrajapati-jg4dg 3 года назад

    when you uploading deployment of deep learning model using this fastapi

  • @jayvirsinhchhasatiya
    @jayvirsinhchhasatiya 2 года назад

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

  • @Beardo_bikepsyche
    @Beardo_bikepsyche 2 года назад

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

  • @shahnawazkhan1636
    @shahnawazkhan1636 3 года назад

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

  • @shivalingachalere2783
    @shivalingachalere2783 Год назад

    Sir please continue uploading fastapi videos.

  • @soonapaana24
    @soonapaana24 3 года назад

    Asynchronous Server Gateway Interface

  • @Nudaykumar
    @Nudaykumar 3 года назад

    Asynchronous server gateway interface

  • @mdmoinuddinkamal3412
    @mdmoinuddinkamal3412 8 месяцев назад

    very good session .greet like as boos ...

  • @shaonsikder556
    @shaonsikder556 3 года назад

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

  • @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

  • @AdityaYadav-qf4qm
    @AdityaYadav-qf4qm Год назад

    Can i create these api' sin vs code?

  • @rajav4144
    @rajav4144 10 месяцев назад

    Does it work the same for Mac os

  • @user-or7ji5hv8y
    @user-or7ji5hv8y 3 года назад +1

    This is so clear. Great example.

  • @kavithamangalagiri2495
    @kavithamangalagiri2495 Год назад

    In detailed explanation. Thank you sir.

  • @snehitvaddi
    @snehitvaddi 3 года назад

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

  • @souravdey8236
    @souravdey8236 2 года назад

    What if the pickl file is large?

  • @ajanieniola9172
    @ajanieniola9172 3 года назад

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

  • @user-or7ji5hv8y
    @user-or7ji5hv8y 3 года назад

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

  • @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... 😐😐😐😐😐

  • @tripurarajavarapu2126
    @tripurarajavarapu2126 Год назад

    Can we deploy two different models at a time?

  • @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

  • @ankitmehra16
    @ankitmehra16 2 года назад

    very very helpful

  • @lourdvicalcindor
    @lourdvicalcindor 2 года назад

    Nice !

  • @tanushreenagar3116
    @tanushreenagar3116 3 года назад

    Nice thnk you

  • @replicasensei1204
    @replicasensei1204 2 года назад

    Thank you for this tutorial

  • @jdhshs12
    @jdhshs12 3 года назад

    Cool

  • @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 4 месяца назад

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

  • @disharamchandani1786
    @disharamchandani1786 3 года назад

    Which ide is this which is of black colour?

  • @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

  • @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?

  • @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!

  • @RavinderRam
    @RavinderRam 3 года назад +2

    second

  • @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