Deploy Machine Learning Models using Flask

  Рет қаралды 111,160

Jay

Jay

Күн бұрын

Link to code: github.com/Jay...
In this tutorial you will learn how to deploy an ML model with python using Flask. This will allow users to interact with your model via http requests. In this example I've built a basic page where a user can upload an image and then it will return information about what animal is in the image.
If you are new to using HTML then check out this video:
• Video
Chapters:
00:00 Introduction & Demo
01:00 Getting started with Flask
03:31 Flask Templates
05:58 Allowing user input
10:43 Adding the ML Model

Пікірлер: 83
@Jay-oc7mc
@Jay-oc7mc 3 жыл бұрын
If you're interested in learning how to get this Flask app onto the cloud I made another tutorial about how to deploy this to Heroku. Heroku is a PaaS which means you don't need to look after the underlying hardware which is pretty cool. You just push your code to their platform and now it will be hosted! kzfaq.info/get/bejne/mpd0frdj3dHDlIE.html
@omrajgure8441
@omrajgure8441 3 жыл бұрын
bro literally i was struggeling from 3-4 days and i am glad that you helped me out i was getting frustated as everyone here on YT not showing the model deployment from scratch they are only doing one thing and that is just giving brief about flask. Thank you soooooo much bro.....you gain a subscriber and you deserve millions of subscriber keep it up and nevere ever give up
@chandansarkar1618
@chandansarkar1618 3 жыл бұрын
Hi, this video was really helpful for beginners. You avoided unnecessary complexities and tried to stick to the main topic. Very useful as a quick reference.
@keithkirui7008
@keithkirui7008 Жыл бұрын
Installing everything required was a real hassle, with CUDA, cuDNN, tensorflow installation, keras, pillow, Conda, etc, alot is different now too..took a few days .but it worked bro.🔥🔥🔥🔥🔥🔥Shukran
@abdelmalekdjamaa7691
@abdelmalekdjamaa7691 3 жыл бұрын
Nice vid ❤. I expect your channel to grow rapidly. Just keep the hard work.
@samuelmwendwa4327
@samuelmwendwa4327 4 ай бұрын
immediate sub. you just saved my final year project
@darkaxce
@darkaxce 3 жыл бұрын
Thank you so much!!!! This video really helped me. I spent 3 weeks researching and testing too many codes, but they didn't work!
@ThuanNguyen-yy7pu
@ThuanNguyen-yy7pu 2 жыл бұрын
Thank you so much sir, I'm so confused when deploying the model to the website until I watch your video
@tani.1772
@tani.1772 3 ай бұрын
you saved my semester thank you
@narangfamily7668
@narangfamily7668 9 ай бұрын
This is so useful! Thank you so much.
@adminsemarakanabatic2398
@adminsemarakanabatic2398 3 жыл бұрын
Thanks man, Very useful Tutorial. Appreciate it !
@sudhakarm4573
@sudhakarm4573 9 ай бұрын
great and clear explanantion
@AlonAvramson
@AlonAvramson 3 жыл бұрын
Thank you so much for this tutorial! which IDE (Editor) are you using in this example? looks really cool.
@Jay-oc7mc
@Jay-oc7mc 3 жыл бұрын
Hey, glad you found it helpful! Im using vscode is a pretty good editor and I use it mostly for front end stuff and python
@yaso1034
@yaso1034 10 ай бұрын
Hello! How can I use my own trained Model Instead of just using the Pre-trained Resnet50? Thanks
@akshitrawat-gv2bh
@akshitrawat-gv2bh 3 ай бұрын
thankyou so much for making this video really worth watching 🤗🤗
@skewbinge6157
@skewbinge6157 2 жыл бұрын
this was so helpful and time saving thank you
@thnapigok2307
@thnapigok2307 Жыл бұрын
Thank youu very much sirr..... Thank youuuuuuuuuu so much.... 🥰🥰😍😍
@_TheMickey_
@_TheMickey_ 2 жыл бұрын
I wish the source code was available to download
@samuelk9722
@samuelk9722 3 жыл бұрын
thank you bro finally i got the solution for my problem. could u make a vid on deployment of (Detectron) Object detector model using Flask, which can give a video inference.
@Jay-oc7mc
@Jay-oc7mc 3 жыл бұрын
Hey, I'm glad you found this useful! I have more videos planned in the future so I'll add this to my list :)
@Robay146
@Robay146 Жыл бұрын
Thank you so much for this!
@sudhakarm4573
@sudhakarm4573 9 ай бұрын
Graph execution error: transpose expects a vector of size 3. But input(1) is a vector of size 4
@ittech7448
@ittech7448 28 күн бұрын
I am just facing issue that I trained the model in colab and now I want to make the front end in flask through vs code but I am facing really issues and idea guys
@pandoratower375
@pandoratower375 3 жыл бұрын
thank you. I find a log time good content
@atacengiz7101
@atacengiz7101 2 жыл бұрын
It is a useful tutorial. Short and touches main points. I wonder that can you share Github link for the project? Thank Jay!
@Jay-oc7mc
@Jay-oc7mc Жыл бұрын
Just uploaded the code to Github: github.com/JayMehtaUK/image-classifier
@leli7
@leli7 3 жыл бұрын
would be nice if you gave a link to the code
@aminetanouyat9643
@aminetanouyat9643 2 жыл бұрын
Thank you! This is very useful
@saisuryamuddalapuram6252
@saisuryamuddalapuram6252 2 жыл бұрын
Can we integrate apache server in xampp and flask
@lohithkumaar2876
@lohithkumaar2876 2 жыл бұрын
@Jay Can you please give a tutorial for the same with PyTorch model.
@DinanathLad
@DinanathLad 2 жыл бұрын
Thank for tutoring. I have a question. I have a trained ML model from vertex AI. Can i use that instead of VGG16?
@ronihossain7428
@ronihossain7428 6 ай бұрын
Very good video.
@muhalbarahusainhaqb5737
@muhalbarahusainhaqb5737 2 жыл бұрын
save a lot hour in my life. thanks jay
@muhalbarahusainhaqb5737
@muhalbarahusainhaqb5737 2 жыл бұрын
simple and very insight full
@somanihuduvey1173
@somanihuduvey1173 Жыл бұрын
Really helpful thanks sir
@kushoza43d24
@kushoza43d24 6 ай бұрын
Thanks Helpful!!!
@soufiane_elbk
@soufiane_elbk Жыл бұрын
Nice it's works with me
@tokaelsayed923
@tokaelsayed923 Ай бұрын
what if i want to load my model? how would be the process in the predict function??
@aravindreddy3972
@aravindreddy3972 2 жыл бұрын
Great video🔥🔥
@bartomiejmierzwa763
@bartomiejmierzwa763 2 жыл бұрын
Good content!
@mahmudhasan3093
@mahmudhasan3093 2 жыл бұрын
thank you sooo much
@pascals5408
@pascals5408 2 жыл бұрын
Thank you
@ropashamu5780
@ropashamu5780 2 жыл бұрын
Thanks Jay. Would you mind sharing the source code?
@flaskapp9885
@flaskapp9885 3 жыл бұрын
subscribed :) make more ml production level videos
@Jay-oc7mc
@Jay-oc7mc 3 жыл бұрын
Thanks! Will be making more videos soon :) Some normal software engineering videos and some ML ones are planned
@flaskapp9885
@flaskapp9885 3 жыл бұрын
@@Jay-oc7mc okay bro
@aayushbhasin569
@aayushbhasin569 3 жыл бұрын
hey! jay i watched ur video and actually loved it..i have trained my own model i am trying to deploy in the way u told me but when i choose the file in the web page and click on predict image it doesnt return anything and the web page reloads and the same page appears to choose file again.
@saifulshohag1209
@saifulshohag1209 2 жыл бұрын
Same here. How did you solve it?
@lakshay_tyagi
@lakshay_tyagi 2 жыл бұрын
Hi Jay I am working on my college project in which our grp made an ml model, so how can we pass that saved image to our ML model. Pls Suggest
@sudhakarm4573
@sudhakarm4573 9 ай бұрын
how to modify the vector input ..
@afzalpb3025
@afzalpb3025 2 жыл бұрын
Hello brother am trained a model using Jupiter notebook and i want to present it the user just like your example APP. How do I call the trained model to the APP. Thank you
@vikingdragon_yt7911
@vikingdragon_yt7911 Жыл бұрын
Can we permanently do it like i could just add my model once and when the link loads it upload images and predict
@muhammadilhamrobani7042
@muhammadilhamrobani7042 11 ай бұрын
hello, i followed your tutorial but i'm facing a problem, the html doesn't update after prediction, even though my prediction was done successfully, please help me. thanks in advance
@siddardhamsd
@siddardhamsd 2 жыл бұрын
How we can download tensorflow in vscode without getting errors and which version is suitable pls reply back. 😭
@harishbhalaa3237
@harishbhalaa3237 11 ай бұрын
After deployment the model takes time to provide answer but your model provides the answer fastly. Efficiency of model or something else ???
@nischalgiri4590
@nischalgiri4590 3 жыл бұрын
kindly please tell me the way that i can display that uploaded image inside index.html
@pratikpatil9448
@pratikpatil9448 5 ай бұрын
Did you figure it out?
@MavsFit
@MavsFit 10 ай бұрын
and if I want to show a image?
@anamee6534
@anamee6534 Жыл бұрын
can anyone tell me where is the issue my localhost is not working!! how am I gonna run this code in localhost?
@saipavangopisetty5937
@saipavangopisetty5937 3 жыл бұрын
Hey jay, I need your help. I build a web page using flask, but whiled prediction its not showing result, plezzz help me jay
@anishmanandhar1203
@anishmanandhar1203 3 жыл бұрын
same here
@shivarajhalageri2513
@shivarajhalageri2513 3 жыл бұрын
@Saipavan Gopietty can you please guide me on how to build website for deploying ml models.
@devanshpalliyath8107
@devanshpalliyath8107 Жыл бұрын
have you used any particular API over here? likes rest api?
@siddardhamsd
@siddardhamsd 2 жыл бұрын
Sir, please help me i am unable to import keras in my vs code i tried tensorflow also but i cant really import it in my app.py. also i created a venv file and dowloaded the tensorflow package in it but i cant import it my app.py.It shows Import "keras" could not be resolvedPylance reportMissingImports.
@birgirkarl
@birgirkarl Жыл бұрын
Python deployment should come with a Rage Warning
@mumusoh
@mumusoh 3 жыл бұрын
Why keras module error?
@gurjeet333
@gurjeet333 3 жыл бұрын
hi, can you provide a link to the code
@alaeddinebensalah7019
@alaeddinebensalah7019 Жыл бұрын
can you give us the code file
@Jay-oc7mc
@Jay-oc7mc Жыл бұрын
Just uploaded a copy of the code to github :) github.com/JayMehtaUK/image-classifier
@eyobmekonnen5474
@eyobmekonnen5474 2 жыл бұрын
thanks for all but please give me the code
@code9419
@code9419 Жыл бұрын
Is it free to deploy ml Model pls reply
@Jay-oc7mc
@Jay-oc7mc Жыл бұрын
Link to the codebase can be found here now: github.com/JayMehtaUK/image-classifier
@woefaker665
@woefaker665 Жыл бұрын
for img_to_array and load_img use those imports instead from keras.utils.image_utils import img_to_array from keras.utils.image_utils import load_img and install pillow : pip install Pillow
@pccomputer-on3un
@pccomputer-on3un Жыл бұрын
Could you share the code please?
@Jay-oc7mc
@Jay-oc7mc Жыл бұрын
Code can be found on Github now: github.com/JayMehtaUK/image-classifier
@mohammedzain9876
@mohammedzain9876 2 жыл бұрын
code?
@Jay-oc7mc
@Jay-oc7mc Жыл бұрын
github.com/JayMehtaUK/image-classifier
@krishshah3974
@krishshah3974 2 жыл бұрын
gib code lol
@salahuddinabushaar7060
@salahuddinabushaar7060 2 жыл бұрын
fake , where is the deployment ?
@oprix
@oprix 2 жыл бұрын
Sir want to connect with you. Can you provide LinkedIn id
@razzazz
@razzazz 3 жыл бұрын
Thanks man! Very cool tutorial!
Deploy ML model in 10 minutes. Explained
12:41
Danil Zherebtsov
Рет қаралды 15 М.
Secret Experiment Toothpaste Pt.4 😱 #shorts
00:35
Mr DegrEE
Рет қаралды 42 МЛН
OMG what happened??😳 filaretiki family✨ #social
01:00
Filaretiki
Рет қаралды 7 МЛН
Build a Machine Learning App From Scratch with Flask & Docker
25:40
Patrick Loeber
Рет қаралды 53 М.
Deploy Machine Learning Models to Heroku with Flask
12:08
Tutorial 2- Deployment of ML models in Heroku using FLASK
23:29
Krish Naik
Рет қаралды 177 М.
How to Deploy Machine Learning Models (ft. Runway)
13:12
Thu Vu data analytics
Рет қаралды 99 М.
How GIT works under the HOOD?
16:01
Tech With Nikola
Рет қаралды 193 М.
Deploy ML Model On Webpage|Python(Flask)| Forest Fire Prevention Using AI
9:56
Deploy Machine Learning Model Flask
29:00
Stats Wire
Рет қаралды 109 М.
Building a Machine Learning API in 15 Minutes | Coding Challenge
20:04
Nicholas Renotte
Рет қаралды 126 М.
"The Life & Death of htmx" by Alexander Petros at Big Sky Dev Con 2024
23:01
Montana Programmers
Рет қаралды 47 М.
Secret Experiment Toothpaste Pt.4 😱 #shorts
00:35
Mr DegrEE
Рет қаралды 42 МЛН