Deploy Machine Learning Models using Flask
Link to code: github.com/JayMehtaUK/image-c...
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
Пікірлер: 82
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! kzread.info/dash/bejne/lmV4rbZrqM7FlLA.html
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
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.
Nice vid ❤. I expect your channel to grow rapidly. Just keep the hard work.
Thank you so much!!!! This video really helped me. I spent 3 weeks researching and testing too many codes, but they didn't work!
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
Thanks man, Very useful Tutorial. Appreciate it !
immediate sub. you just saved my final year project
this was so helpful and time saving thank you
Thank you so much sir, I'm so confused when deploying the model to the website until I watch your video
This is so useful! Thank you so much.
you saved my semester thank you
thank you. I find a log time good content
Thank you! This is very useful
thankyou so much for making this video really worth watching 🤗🤗
Thank you so much for this!
great and clear explanantion
Great video🔥🔥
Really helpful thanks sir
Thank youu very much sirr..... Thank youuuuuuuuuu so much.... 🥰🥰😍😍
Very good video.
Thanks Helpful!!!
Nice it's works with me
Good content!
thank you sooo much
Thank you so much for this tutorial! which IDE (Editor) are you using in this example? looks really cool.
@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
Thank you
save a lot hour in my life. thanks jay
@muhalbarahusainhaqb5737
2 жыл бұрын
simple and very insight full
Thank for tutoring. I have a question. I have a trained ML model from vertex AI. Can i use that instead of VGG16?
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
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 :)
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
Hello! How can I use my own trained Model Instead of just using the Pre-trained Resnet50? Thanks
@Jay Can you please give a tutorial for the same with PyTorch model.
subscribed :) make more ml production level videos
@Jay-oc7mc
3 жыл бұрын
Thanks! Will be making more videos soon :) Some normal software engineering videos and some ML ones are planned
@flaskapp9885
3 жыл бұрын
@@Jay-oc7mc okay bro
Can we permanently do it like i could just add my model once and when the link loads it upload images and predict
Link to the codebase can be found here now: github.com/JayMehtaUK/image-classifier
Can we integrate apache server in xampp and flask
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
Жыл бұрын
Just uploaded the code to Github: github.com/JayMehtaUK/image-classifier
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
what if i want to load my model? how would be the process in the predict function??
would be nice if you gave a link to the code
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.
Graph execution error: transpose expects a vector of size 3. But input(1) is a vector of size 4
have you used any particular API over here? likes rest api?
Thanks Jay. Would you mind sharing the source code?
How we can download tensorflow in vscode without getting errors and which version is suitable pls reply back. 😭
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
2 жыл бұрын
Same here. How did you solve it?
I wish the source code was available to download
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
and if I want to show a image?
how to modify the vector input ..
Why keras module error?
kindly please tell me the way that i can display that uploaded image inside index.html
@pratikpatil9448
4 ай бұрын
Did you figure it out?
can anyone tell me where is the issue my localhost is not working!! how am I gonna run this code in localhost?
hi, can you provide a link to the code
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
3 жыл бұрын
same here
@shivarajhalageri2513
2 жыл бұрын
@Saipavan Gopietty can you please guide me on how to build website for deploying ml models.
After deployment the model takes time to provide answer but your model provides the answer fastly. Efficiency of model or something else ???
Is it free to deploy ml Model pls reply
Python deployment should come with a Rage Warning
thanks for all but please give me the code
can you give us the code file
@Jay-oc7mc
Жыл бұрын
Just uploaded a copy of the code to github :) github.com/JayMehtaUK/image-classifier
Could you share the code please?
@Jay-oc7mc
Жыл бұрын
Code can be found on Github now: github.com/JayMehtaUK/image-classifier
code?
@Jay-oc7mc
Жыл бұрын
github.com/JayMehtaUK/image-classifier
gib code lol
fake , where is the deployment ?
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
Sir want to connect with you. Can you provide LinkedIn id
Thanks man! Very cool tutorial!