Deploy ML Model On Webpage|Python(Flask)| Forest Fire Prevention Using AI

แชร์
ฝัง
  • เผยแพร่เมื่อ 5 ต.ค. 2024

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

  • @nicokalkusinski9320
    @nicokalkusinski9320 7 หลายเดือนก่อน +58

    For every 1000 people selling you 10h course on the topic, there is one Indian guy explaining the topic in 3 minutes.

  • @MuhammadAli-fd3sc
    @MuhammadAli-fd3sc 4 ปีที่แล้ว +16

    This videos contains the content of 6, 7 lectures of python and flask. Very well explained. Cheers 👍

  • @SreeVibhaG_ENG21CS041
    @SreeVibhaG_ENG21CS041 10 หลายเดือนก่อน +7

    YOU ARE AMAZING. AFTER WATCHING YOUR VIDEO I COULD FIGURE OUT THE ROOT CAUSE OF MY BUG AND FIXED IT AFTER TRYING TO FIX IT SINCE TWO WEEKS. HANDS DOWN YOU'RE AMAZING. ISTG I COULD ACTUALLY CRY NOW OMG

  • @jaydeepshingala5092
    @jaydeepshingala5092 4 ปีที่แล้ว +4

    There are so many videos available to deploy models but all are misleading they have demonstrated model creation instead of deployment. you are very straight to the point, love it! wonderful it will help a lot...

  • @hafsasiddiqua5024
    @hafsasiddiqua5024 6 หลายเดือนก่อน +2

    Searched thousands of methods to get the right answer/solution to my query, and BOOOOOM HERE WO GO ... FINALLLLLYYYYY!!! Got the answer!

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

    Everyone is making vids on model deployment where the model has only numerical features.
    Kindly do a vid on model deployment where the model has categorical features as well since that is the most realistic case.

  • @divyanshchaudhary7063
    @divyanshchaudhary7063 3 หลายเดือนก่อน +1

    Thanks dost
    mene Grt Lernng me 4 lakh diye the tab voh kuch nahi bta paye
    and here you saved me in 10 min video..

  • @oshtontsen5428
    @oshtontsen5428 4 ปีที่แล้ว +28

    Very clearly explained and straight forward. Love it! Keep doing what you're doing

  • @firasrachidi3512
    @firasrachidi3512 4 ปีที่แล้ว +13

    Simple and straight to the point, love it! Wish you all the best

  • @rahulshrivastava8590
    @rahulshrivastava8590 27 วันที่ผ่านมา +1

    This guy really look like a Techie who knows all the mystery of tech World

  • @deepakkota6672
    @deepakkota6672 4 ปีที่แล้ว +4

    Deeply I appreciate approach, Quite hard to get complicated content with such a simple explanation. Kudo amigo!

  • @shachi-kun2275
    @shachi-kun2275 3 ปีที่แล้ว +2

    Very helpful. Most videos by others were too complicated for me. This helped me

  • @saravanakumarv605
    @saravanakumarv605 ปีที่แล้ว +7

    bro i just created a front-end for a music recommender which creates a playlist and the content of the playlist will be sent into ml model and the output will be shown in front-end can i use the same technique to my project

  • @SaiprakashReddy
    @SaiprakashReddy 4 ปีที่แล้ว +4

    Good Video . But I Felt You should have used the entire dataset for the training itself instead of splitting as we don't test our model right. A larger dataset is good for the performance of the deployed Model.

  • @rohanrane5968
    @rohanrane5968 11 หลายเดือนก่อน +1

    thank you brother. i really wanted to deploy my model didnt know how thank you some much

  • @rohitkumar-nk6sd
    @rohitkumar-nk6sd 3 ปีที่แล้ว +3

    I want to submit text data as my Ml model accepts text so what changes should i need to do in predict function of flask code (app.py) please help me out

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

    Thank you for explaining this concept in a simplistic way!

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

      You are a saviour

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

    thank you for saving my life bro.🙏🏻

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

    This video was concise and easy to understand . I need help regarding sentiment analysis.

  • @punamnavale8927
    @punamnavale8927 หลายเดือนก่อน +1

    I want to integrate the multiple machine learning models into the single webpage... How to do it?

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

    Thnx Bro! saved hours and hours of video tutorial in just 10 mins

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

    Thanks
    Could all these be done completely in Jupiter notebook environment? If yes, could you do a demo? Also something missing in the video is how the directory “template” is created? Thanks

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

    Well explained! 🎉

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

    hye basically i have a problem to run your code, it state like this, hope to get reply soon.
    model=pickle.load(open('model.pkl','rb'))
    ModuleNotFoundError: No module named 'sklearn.linear_model.logistic'

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

    Thanks a lot man...👍✌

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

    Thanks ! Great video for ML beginners

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

    Hey thanks man. It helped me with my capstone project

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

    what is the sklearn version used to create the model? beacause I am getting ModuleNotFoundError: No module named 'sklearn.linear_model.logistic' error and it's due to mismatch in version.

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

    Which software is required to run this project ...
    Please explain in step by step 🙏🙏🙏

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

    ValueError: Found array with 0 feature(s) (shape=(1, 0)) while a minimum of 1 is required.
    My project shows this error. Please help asap

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

    This is what i was looking for.
    thx body.
    keep up the good work

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

    Big help man and you explained the code really well, thanks a lot!

  • @chhayakhattri8957
    @chhayakhattri8957 4 ปีที่แล้ว +8

    Just what I needed man, just what I needed.(◍•ᴗ•◍)❤

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

    Addition of two numbers is a program where we take inputs using input function in python, but in flask if we want to take input from user where the program file(model.py) is different from Flask(app.py) and inputs should be given from html page. So how would we connect both app.py and model.py files and how the input function gets replaced in Flask to take inputs from user as same as forest fire prevention program

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

      Why do you need a model.py? Just take input from html form , and define a function in app.py to get the inputs, add them and return it.

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

      @@NachiketaHebbar my question here is whether we can take user input of flask from html form to another python program. If in case to use input from flask files to Python program how we can deploy it

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

    Explained to very basic!! Thanks!!

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

    brother did u know how Deploy ML model on webpage using flask into laravel ?? please make a content.....

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

    Great video....but I worked on this and I am getting template not found error....any suggestions on that😢

  • @PIYUSH-lz1zq
    @PIYUSH-lz1zq 2 ปีที่แล้ว

    Which one to use flask or streamlit??? Which is good

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

    when I am run this code ..jinja2.expections.TemplateNotFound error displayed...many errors .what to do?

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

      You get that error if you have not put the html page inside the templates folder. And make sure it's spelled correctly in the render template function .

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

      one more error founded..
      ValueError: Found array with 0 feature(s) (shape=(1, 0)) while a minimum of 1 is required.
      plz solve that

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

      @@anjalivijayan525 while taking input in form, in the html page, make sure the name variable is set in the input tag. If the name variable is not specified ,no value of input is sent by the form to ml model.

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

      @@NachiketaHebbar thanks

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

      @@NachiketaHebbar okay. if don't mind .I have one more error..plz correct that..I am a beginner learning on flask.
      ValueError
      ValueError: invalid literal for int() with base 10: ''

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

    Thanks for this I just needed a little bit help

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

    can u please show that how to get the implement while clicking the algorithm and giving the output. And the code should run in background

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

    after my values are filled and i click the submit button the page gets refreshed and the opens the same page

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

    How to input the values from an excel sheet and write output to the next column in the corresponding row?

  • @tomblue3261
    @tomblue3261 4 ปีที่แล้ว

    this video is nice, am just a total beginner i just learnt how to create a model on jupyter notepad.but i want to learn more. can you recommend me ur videos about flask ?

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

    In the same model if I want to pass temperature/O2/humidity Input a multiple time , How can I achieve that ?
    Like I want to make predictions of two forest at a same time

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

    Very well explained in easy manner, but I'm getting an error 404 Not Found..
    Help me to solve this
    Thank you🥰

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

      Me too getting the 404 not found error. I feel the submit button trigger is not happening properly.

  • @muskan8911
    @muskan8911 4 ปีที่แล้ว

    But how to run an entire project in flask?.. Suppose, I want to create a dynamic web app where I specify buttons for uploading the dataset, normalise it and then choosing a model to predict..
    Also, after I take input for the file from the user, how do I save it and then reuse the same file when other buttons are clicked?

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

    what if our form has some object type input in such case how are we supposed to give it to our model?

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

    I had a small doubt suppose here you have integrated the flask framework with your machine learning model so do we need js or react to implement the front end functionality..? Have you used js as well??

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

    I watched the video about 3 to 4 times and tried to use your code to run my web application and it doesn't work 🌚💔
    I think I'm doing something wrong ..
    How is the html file is connected with these py files ? Could you explain, please?

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

    nice

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

    Quick and precise, thanks big bruh

  • @Anonymous-yu8lf
    @Anonymous-yu8lf 2 ปีที่แล้ว

    bro, it shows error after clicking the predict probability button , what to do ?please help

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

    hello. i tried to install pickle into my pycharm. however i couldnt find pickle. instead i only found pickles or pickler. are those package the same as pickle ?

  • @syedhamzajamil4490
    @syedhamzajamil4490 4 ปีที่แล้ว

    Bro in Your case you have 2 class 0,1 output='{0:.{1}f}'.format(prediction[0][1], 2) but if have 3 class like 0,1,2 how i write code for my: output =

  • @Rajkumar-vc2pg
    @Rajkumar-vc2pg 3 ปีที่แล้ว

    So in a nut shell we will dump our model in a pickel file.. then we name the pickfile in our app.py

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

    Very informative video thank you!!! I’m doing a similar project but im using satellite data and CNN algorithim. Would you advise me to also use Flask?

  • @aradhyasingh9917
    @aradhyasingh9917 4 ปีที่แล้ว

    im getting this error TypeError: can't pickle _thread.RLock objects what shoul i do

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

    *Hello bro, I'm coverting an image to cartoon and I do have python model. But I don't know how to upload image and fed into model and then get output which is downloadable* All this thing is to be implemented in react app. 🙏🙏🙏 Please help

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

    Can this be done in vs code instead of pycharm?

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

    You saved my day, heck yeah.
    Thankyou homie

  • @syedshahab8471
    @syedshahab8471 4 ปีที่แล้ว

    Video is good. I thought you are going to deploy it ( so that it is accessible by everyone)

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

    Hello,
    I got the predicted output with the help of your video but when I'm using dtreeviz library to visualise my output because my algo is decision tree and trying it to display on application when clicking the submit button but I can't able to do that. Showing different Kind of errors. Mainly "TypeError: '>' not supported between instances of 'numpy.ndarray' and 'str'" , I have searched every thing but didn't able to resolve it. Can you please help me with that.
    Thanks

  • @sanjeevkumar-oc8wn
    @sanjeevkumar-oc8wn 4 ปีที่แล้ว

    Informative. Thanks

  • @abhilasabarman6500
    @abhilasabarman6500 4 ปีที่แล้ว

    Easy to understand. Thanks!

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

    Can we host streamlit applications ?

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

    Hi bro Your knowledge is very good can you please tell me how I can convert this chatbot into voicebot means rather than typing it will ask a question and I will give the parameter and it predict the result and Speak the response. Can you please help me into this

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

    Dude, this is amazing!

  • @SajalSirohiBIS
    @SajalSirohiBIS 4 ปีที่แล้ว

    Real nice and helpful video. Keep it up. Try to do the same thing with other frameworks also. Would be a nice Playlist.

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

    Very helpful! How can I deploy multiple ML models into webpage?

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

    Hey, I have a doubt can we connect plz

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

    Hi @Nachiketa Hebbar,
    I have created a model to perform text-classification with this I have saved the model in model.h5 and one pickle file for words.
    Is there any way that I can save both the content in one file which is called as model.
    Thank you in Advance.

    • @NachiketaHebbar
      @NachiketaHebbar  4 ปีที่แล้ว

      If the pickle file simple contains words , you only need it to train the model, you dont need to store it afterwards.

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

    Great explanation

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

    How to created .pkl file ? i can find how to created it. I have file ipynb in gg colab, plz help me

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

    It showed Server can't be reached

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

    Hi bro. Thanks for a great video.
    I have a doubt regarding it. Is it possible to read data from a sensor and add it to one of the field, for eg. Temperature. If it is possible how can we implement this in the code?

  • @RM-lb7xw
    @RM-lb7xw 3 ปีที่แล้ว

    Great video mate. Glad I found this.

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

    can we do the same using FastApi

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

    Is there a way to deploy the model as a chrome extension?

  • @arnabbasu4514
    @arnabbasu4514 4 ปีที่แล้ว

    Can u say that can i do the same thing in spyder Or jupyter??

  • @naveen756
    @naveen756 4 ปีที่แล้ว

    when i m going to diploy and input values its shows error 404 page

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

    Does your code update the prediction results when you type another set of values consecutively?

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

    What is the accuracy of the model as the csv file contains only 40 rows

    • @NachiketaHebbar
      @NachiketaHebbar  2 หลายเดือนก่อน +1

      The açcuracy is irrelevant as it is dummy data. The goal was just to show the process of training a model on some data and using the trained model in a webapp.

  • @warangproduction9759
    @warangproduction9759 4 ปีที่แล้ว

    hey brother can you do a full project intending for beginner ?? Diabetes project would be better ??

  • @akshaymbhat9144
    @akshaymbhat9144 4 ปีที่แล้ว

    Sir how to deploy this site into hostinger or GoDaddy ? Please help

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

    How can I depploy it to real online web?

  • @anuragdhyani1712
    @anuragdhyani1712 4 ปีที่แล้ว

    great video for newbies.

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

    great work man.... wish dataset could have quit big..

  • @adityakishan589
    @adityakishan589 4 ปีที่แล้ว

    I am getting error "cannot post/predict"

  • @s.swetha3394
    @s.swetha3394 ปีที่แล้ว

    Is there any software need to be installed to connect ml file

  • @areefa6268
    @areefa6268 4 ปีที่แล้ว

    Nice explanation.. Truly helped me.. But one prblm .. I tried to display background with an image but.. In case when I run the web app in case of printing prediction, it is not displaying the image in background

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

      Place the image in the static folder , and in the body tag insert style ="background-image : url('..\static\image_name') ;" . I have explained this in my video on creating advanced forms in flask. Just skip to 8:00 in that video .

    • @areefa6268
      @areefa6268 4 ปีที่แล้ว

      @@NachiketaHebbar yeah got it.. Thanks a lot✌😊

  • @ahmedmoustafaabu3esha949
    @ahmedmoustafaabu3esha949 4 ปีที่แล้ว

    please ,how to connect my model to php code not html??

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

    will it work with .h5 model or I need to create .pkl one ???

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

    Can someone tell me how the probability is calculated?

  • @bablusingh-ij1sw
    @bablusingh-ij1sw 4 ปีที่แล้ว

    this is not deployment you are using it on your localhost which Is not deployment

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

    Very insightful. I train models using python but i develop web apps with PHP. How do i deploy my python model in PHP like you did with Flask ??

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

    Amazing Explanation!

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

    Hi, Nachiketa! Is there a way to share this online for free instead of doing it locally?
    I'm new to deployment and I'm currently working on an attrition modeling project.
    I'd like to publish my final work on the web so that the public can interact with my work, which I believe is a more exciting way of presenting it instead of simply posting a recorded video of my work.
    Anyway, thank you so much for sharing your expertise with us. Subscribed already.
    Keep up the great work!

  • @Death-yd9vg
    @Death-yd9vg 7 หลายเดือนก่อน

    Bro what to do if we already have a model dumped as model.joblib

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

    Hey Nachiketa,
    Amazing Video!! While I created the app.py file, I am getting an error in the line predection = model.predict(final).
    Error is - undefined name 'model'. Please note that the ML python file has a variable 'model' for logestic regression.
    Can you help resolving this error

    • @NachiketaHebbar
      @NachiketaHebbar  4 ปีที่แล้ว

      You have to load the model first in the app.py file before using model.predict

    • @amolwadpalle3473
      @amolwadpalle3473 4 ปีที่แล้ว

      @@NachiketaHebbar Yes i did, however i am still getting the same error.
      app = Flask(__name__)
      random_clf=pickle.load(open('model.pkl','rb'))
      @app.route('/')
      def hello_world():
      return render_template("iris1.html")
      @app.route('/predict',methods=['POST','GET'])
      def predict():
      int_features=[int(x) for x in request.form.values()]
      final=[np.array(int_features)]
      prediction=model_clf.predict(final)
      output = round(prediction[0], 2)
      return render_template('iris1.html',pred='The flower is Iris-setosa'.format(output))

    • @amolwadpalle3473
      @amolwadpalle3473 4 ปีที่แล้ว

      @Nachiketa Hebbar, ignore the above comment, i was able to debug the issue. Thanks Again for the Video and prompt response!!

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

      @@amolwadpalle3473 hy, are you having same problem with me? like this .
      model=pickle.load(open('model.pkl','rb'))
      ModuleNotFoundError: No module named 'sklearn.linear_model.logistic'
      and if yes, may I know how you solve it.. because I have do many ways, but still error.. i tried to update the version of python and install the packet still got an error,,

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

      @@min9870 yes im getting this error..can you please solve it