Python Flask Machine Learning Web App Tutorial

Поделиться
HTML-код
  • Опубликовано: 24 янв 2025

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

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

    I offer 1 on 1 tutoring for Data Structures & Algos, and Analytics / ML! Book a free consultation here: calendly.com/greghogg/30min

  • @arsheyajain7055
    @arsheyajain7055 3 года назад +6

    I’ve been waiting for this one!! Thank you!

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

      Love your consistent support Arsheya, I really appreciate it!

  • @agustinsantellanfernandez5587
    @agustinsantellanfernandez5587 3 года назад +4

    Sir, you have done a beatifull job explaining this topics with enough detail and precision as posible. I am so glad I have seen this video. You have a new follower, thanks for taking the time and sharing the knowledge.

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

      That's really nice and awesome to hear, Agustin :)

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

    Really well thought tutorial
    Looking for ML with flask, found your video and totally worth an hour
    This is awesome, helped a lot

    • @GregHogg
      @GregHogg  2 года назад +1

      Awesome, super glad to have helped!

  • @pushpitkumar99
    @pushpitkumar99 3 года назад +6

    Thank You for explaining everything in such a simple way. Subscribed!

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

      Really glad to hear it :)

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

    Hi Greg, this is such an awesome tutorial! Helped me a lot :)

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

      Very glad to hear it Ashley!

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

    Very nicely done! This video was of great help for my DeepLearning-App :)

  • @NavyaVedachala
    @NavyaVedachala 2 года назад +1

    I was having trouble with a timeout issue when it came to downloading some packages at 4:57. If anyone lese has this issue try pip --default-timeout=2000 install kaleido. This tells pip to not timeout with downloading in the case of large files. Kaleido was a whooping 66Mb so setting the timeout to around 6000 did the trick for me.

    • @NavyaVedachala
      @NavyaVedachala 2 года назад +1

      if you are getting errors about the has not matching: pip --default-timeout=20000 install --no-cache-dir kaleido==0.2.1

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

    Great tutorial Greg!! Totally worth the time

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

      Thank you so much, glad to hear it and best of luck ☺️

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

    What a fantastic tutorial. I learned a lot! Thanks Gregg!!!!!!! :D

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

      Thank you! You're very welcome 😁

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

    Thank you brother your channel is very underrated thank you.

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

      Thank you I really appreciate that ☺️

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

    I'm facing an issue at 25:40 "Internal Server Error
    The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there is an error in the application."
    Please tell me how to fix this.

  • @儒雅随和带带大师兄
    @儒雅随和带带大师兄 3 года назад +2

    Looks great, subscribed and liked

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

      Glad to hear it!

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

    Hey man great tutorial. You inspire me with my python channel so keep it up!

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

      Thanks so much, and that's great! Best of luck 👍👍👍

  • @midokhodairy4866
    @midokhodairy4866 4 дня назад

    Thanks a lot. I think your channel is actually unique.👊

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

    This is awesome!! I like it a lot. Thanks for this great Tutorial man

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

      You're very welcome Marwen!

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

      @@GregHogg Hi , Where can i find heroku deployment video

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

    This is really awesome. Great help!

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

    1:05:38 PLS help me! i really dont understand how the graph suddenly became interactive??? your html file is reading an svc which is a static image

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

      I think this is because we left the fig.show() inside the make_picture function

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

    everything was so well explained and to the point, very nice.

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

      Glad it was helpful!!

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

    Hey, you can put a timestamp on your description for the start of the video, this way video gets chapter divisions, else great video!

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

    I need to watch this bro!!!!! Once I'm done with assignments 🙃

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

      Haha so many assignments

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

    Nice tuto bro ... Keep going

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

      Thanks! What would you like to see?

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

      @@GregHogg more tutorials about how to use flask with pandas or seaborn in data visualization ..

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

      @@ahmedtouzani6780 cool idea!

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

    is it possible to make things more complicated? 'cause your video is far more easy to understand! love this

  • @JuanMartinez-dh3tf
    @JuanMartinez-dh3tf 3 года назад

    Gracias padrino sigue subiendo videos chidos como este 👌

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

    Wow... This tutorial is such and inspiration and I have been trying to perform some visualization using shap alongside the line of your tutorial but the visual is not showing any advice?

  • @uditsharma7
    @uditsharma7 3 года назад +6

    Hi Greg! Great video! Can you also link me to the code for this project?

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

      Thank you ❤️ have you checked my RUclips GitHub repo?

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

      @@GregHogg yes, but which repository exactly?

    • @GregHogg
      @GregHogg  3 года назад +4

      @@uditsharma7 github.com/gahogg/RUclips/tree/master/Flask%20Machine%20Learning%20Model/Part%201

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

      @@GregHogg great! Thank you so much! Makes following the video so much easier!

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

      @@uditsharma7 That's the hope! 😃

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

    Excellent tut, thanks.

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

      Thank you and you're very welcome!

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

    easy for beginners, very great

  • @kyle.555
    @kyle.555 2 года назад

    it's inspiring, thanks for the video

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

    Hello. Thank you for the great work. I did not see the part 2 of this tutorial. Can you link it please if you have already uploaded it?

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

      Sorry about that. Please check my home page and there's a playlist with the second one there :)

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

    Thanks for this fruitful explanation

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

      You're very welcome!

  • @MUHAMMADAL-ZUKARNAIMSAPTI
    @MUHAMMADAL-ZUKARNAIMSAPTI 19 дней назад

    i use recommendation system model like cotent based , is this tuto same tha i can apply my mdeol to the flask ?

  • @rizbasamalah5326
    @rizbasamalah5326 2 года назад +1

    Hi Greg, your tutorial is awesome. I've got a little problem when do flask run, this error show up 'ModuleNotFoundError: No module named '_crypt'' and I don't know what should I do

  • @SadiaAyoub-y8v
    @SadiaAyoub-y8v 2 месяца назад

    Sir, My final year project is related to Automated Fruit Ripeness Detection using Deep Learning model. There will be at least four fruits , we have to train model to classify fruit either Underripe, ripe or overripe. Can you please help me. Can I make a GUI we-based in Flask in Google Collab??? or I should make Web Flask app using VS code and then integrate my model at Google Collab? Which will be more convenient for me.

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

    HI Greg, do you know if I need a virtual environment if I'm going to create a recommender engine? Sorry about getting straight to the point, but your video really makes me wanna do more with ML.
    Thanks

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

      I love the excitement! Virtual environments help computers know which Python libraries are required for an application. They're generally used to deploy and package applications, so yes it wouldn't hurt.

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

    Really helpful!

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

      Very glad to hear that!

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

    Hi bro! when I use fig.add_trace() it doesn't show the line as well as the marker on the graph( Only scatter was shown). Could you help me with this?

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

    It would be great if you could pause for a second after editing text before scrolling away.

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

      Thanks sorry about that I'll keep that in mind

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

    question: can the joblib file also store specific functions? that way you don't need to copy and paste them over? Could you dump functions / multiple things into the joblib file?

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

      You would want to store that in a .py file more likely.

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

    wow that's amazing

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

    Thank you 😊

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

    Is 'static' a special folder in flask? I tried changing the predictions folder to another folder names 'out' images are getting saved there but getting a 404 error and not loading..

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

      Yes, static is special.

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

    Thank you :)!!!

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

      You're very welcome 🙂

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

    in your case u call the input form just "text = request.form(text)"
    and your new input just use comma for another variable
    how to i call the multiple inputs in form?

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

      I don't know, I would check the docs

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

    Sir, how to download requirement.txt file from your github ?
    I found the requirement.txt file from your github, but how to download it ?

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

    Hi Gregg, where can i get the requirements.txt file?

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

      GitHub link in description, youtube repo

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

    I'm getting "Error: [WinError 2] The system cannot find the file specified: " error
    what do I do?
    this is on running py -m venv .env

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

      Hey!
      nevermind, i fixed it.
      for anyone facing the issue, it is because Windows Ransomware protection in Windows Defender is blocking python executable and cmd from doing anything, just add them to a list of exceptions and you should be good!

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

      @@AKrishnaAkhil really glad you found it, because I really didn't know what what wrong! Makes sense!

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

    great vid

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

      Thank you ☺️

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

    It is possible to add an style.css to this html file?
    I tried but mine didn't work on the flask run, but locally it worked...
    I tried to make it work on heroku but no success

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

      I haven't experimented too much with this sorry.

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

      @@GregHogg I had to put inside the static folder and change the reference to

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

    Hi Greg. Thanks for the awesome video!
    I followed your tutorial, and I'm getting an error message at the last step.
    raise ValueError(startup_response.get("message", "Failed to start Kaleido subprocess"))
    "ValueError: --plotlyjs argument is not a valid URL or file path:
    "
    I even copied and pasted your code and the files in your github folder, and it didn't work.
    I even installed Kaleido, plotly, plotly.express, and orca. Can you help me find what's wrong?
    Because it's the last step, I guess I could let it go, but I really want to know why it's not woring.

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

      I'm sorry this isn't working. I hope at some point I can find a chance to help you here, I can't think off the top of my head what's wrong.

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

    bro can you make a tutorial for blue collar job resume ranking system

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

    how did you download the model

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

    what python version were you using in this?

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

      Probably 3.7 at this time

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

    hey Greg, can I get a link to your requirements.txt file

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

      GitHub is in description, it's in my RUclips repository :)

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

    Hey Greg, I followed the tutorial and everything worked out great except the new tab with the interactive graph. Could you please help me out a bit.

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

      Hmm that's weird. Maybe find some code that forces it to open?

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

      @@GregHogg sure, I'll look into it. Thanks a lot.

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

      @@arymandeshwal485 lemme know how that goes!

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

      @@GregHogg definitely 👌

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

    Hey man, I trying to learn to build this machine learning application by seeing your video, but unfortunately, I am getting ModuleNotFoundError: No module named '_crypt' this error, Please help me out, I am coding on ryzen 5 (5600h) with windows 11. Thank you for sharing valuable knowledge. Looking forward to it.

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

    Hey I'm new to data science can you please tell me Do I have to learn everything in flask (only for DataScience) ,if not could you please specify the required topics ??

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

      You definitely don't have to learn everything about flask. This video is honestly enough to get by :)

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

      @@GregHogg Thankyou

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

      @@sagarsrivastava7573 very welcome!

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

    Thanks for awesome tutorial. when i ran flask in cmd i encounter this warning:
    WARNING: Do not use the development server in a production environment.
    Use a production WSGI server instead
    do u have a solution for this?

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

      No solution necessary, it means what it says

  • @2_datacrawlers_nawaf__109
    @2_datacrawlers_nawaf__109 3 года назад +1

    where's the deployement video?

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

      Check the homepage of my channel, the playlist is there just scroll down a bit please :)

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

    Hi Any chance of making the code more visible. The screen play is very unclear.

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

      What device are you on, and why is it unclear? I'm sorry to hear that, and at this stage it cannot be adjusted.

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

      @@GregHogg Its fixed now. The code on the video is clear.

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

    It is taking extremely long for the new graph response to come through. Is that normal? It seems to be loading very quickly for you

    • @GregHogg
      @GregHogg  2 года назад +1

      I had a lot of inconsistencies with it

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

    how to get requirements.txt file

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

    can you give the link for requirements.txt, also please provide the link of that data also..thanks

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

      GitHub in video description :)

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

      @@GregHogg thanks but you should mentioned this repository link not the github link...btw tysm

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

    Why is the base image not interactive?

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

      At which point, sorry? Been awhile since I made this.

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

      @@GregHogg At 47:58. It's the base_pic.svg that seems not interactive.

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

      @@andywang8585 I think it's a browser thing. For me, it popped up and was interactive. Weird things happen in html!

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

    flask run shows that warning >> ( WARNING: This is a development server. Do not use it in a production deployment.)

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

      Yeah, this makes sense, right? It's not an error, just a warning

  • @shivamsharma-zv7zl
    @shivamsharma-zv7zl 3 года назад

    source code???????????

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

      In the description there's my GitHub profile, and I have a RUclips repository with the flask project in there :)

    • @shivamsharma-zv7zl
      @shivamsharma-zv7zl 3 года назад

      @@GregHogg thanks

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

    Use Dash or Streamlit, why bother with all this?

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

      If you prefer them and can do all the same things then by all means

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

    To my mind, the presentator speaks too fast.

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

    Deployed.
    Live inputs from user.
    0:50: tooltips.

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

    Plotly Orca Error:
    ValueError:
    The plotly.io.orca.config.use_xvfb property is set to True, but the
    xvfb-run executable could not be found on the system path.
    Any insights would be helpful.

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

      Sorry, don't know what to do :(

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

      Relates to the path if the orca git issues posts are any indication. What's your tech stack?