Create Web App in Google Colab | How to use Flask in Colab | Machine Learning | Data Magic

Hello Friends,
In this episode we are going to see,How we can create Web application in Colab notebook by using Flask.
This will be more of intuition part about ,How to use Flask in Colab notebook.
Access Flask Template files: github.com/datamagic2020/depl...
Stay tuned and enjoy Machine Learning !!!
Cheers !!!
#flaskInColab #webAppInColab #colab
Connect with me,
☑️ KZread : / datamagic2020
☑️ Facebook : / datamagic2020
☑️ Instagram : / datamagic2020
☑️ Twitter : / datamagic5
☑️ Telegram: t.me/datamagic2020
For Business Inquiries : datamagic2020@gmail.com
Best book for Machine Learning : amzn.to/3qCe0Rf
🎥 Playlists :
☑️Machine Learning Basics
• Machine Learning Basics
☑️Feature Engineering/ Data Preprocessing
• Data Preprocessing
☑️OpenCV Tutorial [Computer Vision]
• OpenCV Tutorial [Compu...
☑️Machine Learning Algorithms
• ML Algorithms
☑️Machine Learning Environment Setup
• Machine Learning Envir...
☑️Machine Learning Model Deployment
• Machine Learning Model...
☑️Machine Learning Projects
• Machine Learning 100 P...
☑️Kaggle Tutorial
• Kaggle Tutorial
☑️Microsoft Lobe Tutorial
• Microsoft Lobe
Thank you for watching !!
Please Like, Comment, Share and Subscribe!!!

Пікірлер: 66

  • @anoopashware9539
    @anoopashware95393 жыл бұрын

    this is really awsome

  • @mehdismaeili3743
    @mehdismaeili37433 ай бұрын

    Excellent.

  • @alesue6575
    @alesue65752 жыл бұрын

    Thanks a lot. this video is very unique

  • @DataMagicAI

    @DataMagicAI

    2 жыл бұрын

    Glad you liked it!

  • @rajrajabathor9030
    @rajrajabathor90302 жыл бұрын

    Awesome Boss !

  • @DataMagicAI

    @DataMagicAI

    2 жыл бұрын

    Thank you!

  • @rialtosan
    @rialtosan2 ай бұрын

    dont we need an authtoken for the ngrok or is it automatically handled by flask-ngrok lib?

  • @fatemerad2309
    @fatemerad2309Ай бұрын

    🎉🎉🎉🎉

  • @ms-ej4gd
    @ms-ej4gd7 ай бұрын

    nice video

  • @DataMagicAI

    @DataMagicAI

    7 ай бұрын

    Thanks

  • @muddassarjilani4637
    @muddassarjilani46372 жыл бұрын

    very useful video, how we can deploy object detection model using detectron2 and flask on Colab

  • @DataMagicAI

    @DataMagicAI

    2 жыл бұрын

    Will try...

  • @rouajaafar6600
    @rouajaafar66002 жыл бұрын

    Hello, how can i display an image using flask on google colab please

  • @rajrajabathor9030
    @rajrajabathor90302 жыл бұрын

    Loved this video ! Can we please have the honor of more such knowledge/expertise please ?!

  • @DataMagicAI

    @DataMagicAI

    2 жыл бұрын

    Sure!

  • @hsjdjdkdk

    @hsjdjdkdk

    2 жыл бұрын

    how update python at Google Colab I'm use From System Android

  • @ianpropst-campbell6028
    @ianpropst-campbell6028 Жыл бұрын

    Thank you for this helpful tutorial! But how do you keep your flask app from shutting down when google colab disconnects from inactivity?

  • @DataMagicAI

    @DataMagicAI

    Жыл бұрын

    If you close notebook. Session will close and server shut down. There no way to keep it running forever on colab.

  • @ksayet1
    @ksayet12 жыл бұрын

    Can other computers access this ngrok site? If so, how can we protect it with a password or IP requirement? Also, does the colab notebook need to be open and running for the site to work?

  • @DataMagicAI

    @DataMagicAI

    2 жыл бұрын

    You cant access it from other computer as your server running on 127.0.0.1:5000/. it is pointing to localhost address. If you close your Colab then session will end and it will stop everything.

  • @user-se9ne2vr4z
    @user-se9ne2vr4z10 ай бұрын

    Everythings goes great but when i click on button, it gives me this error : 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.

  • @noimeenoi
    @noimeenoi2 жыл бұрын

    Can we use bootstrap for the user interface?

  • @DataMagicAI

    @DataMagicAI

    2 жыл бұрын

    Yes you can. You need to install flask-bootstrap depedency. Pip install flask-bootstrap

  • @GopinathGM
    @GopinathGM3 ай бұрын

    How i combine my colab code with my webpage......plzzzzzzzzz

  • @sreebhavaninarayana6944
    @sreebhavaninarayana69442 жыл бұрын

    In the 'getPrediction' function how do we take image input? Can you explain that?

  • @DataMagicAI

    @DataMagicAI

    2 жыл бұрын

    You need to add html code to upload file and save it in temp folder and try to accept it. I am working on one episode where I will sho how to upload image and apply model on it to make prediction. Will publish soon...stay tunned..

  • @RawanAlfaraj

    @RawanAlfaraj

    Жыл бұрын

    @@DataMagicAI is this available or not yet? thank you

  • @arjun-ou2hm
    @arjun-ou2hm Жыл бұрын

    The link will generated but not working

  • @princeradhakrishnan1147
    @princeradhakrishnan1147 Жыл бұрын

    What to do if I want to send an image as input for model.

  • @DataMagicAI

    @DataMagicAI

    Жыл бұрын

    Check flasks based episode on our channel under ML Model deployment series.

  • @knowledgegetter
    @knowledgegetter9 ай бұрын

    How can i dispay sql query answers using flask framework on google collab?

  • @DataMagicAI

    @DataMagicAI

    9 ай бұрын

    use flask-sqlalchemy package

  • @janvi5835
    @janvi58359 ай бұрын

    Hello sir I have to display a data set which is of thousands of rows and 25 columns how to do this through rest api using flask in google colab

  • @DataMagicAI

    @DataMagicAI

    9 ай бұрын

    You can do it in json format.

  • @janvi5835

    @janvi5835

    9 ай бұрын

    @@DataMagicAI I even tried that but it is showing error

  • @aanyarustagi3450
    @aanyarustagi34502 жыл бұрын

    When opening the link in the end it is showing sign up and download authtoken. Can u tell why and how to proceed?

  • @aanyarustagi3450

    @aanyarustagi3450

    2 жыл бұрын

    please reply i have a practical tomorrow

  • @hsjdjdkdk

    @hsjdjdkdk

    2 жыл бұрын

    how update python at Google Colab I'm use From System Android

  • @aanyarustagi3450
    @aanyarustagi34502 жыл бұрын

    how can i do this in a .h5 model and not a .pkl model

  • @DataMagicAI

    @DataMagicAI

    2 жыл бұрын

    You can make use of Keras to load the model. Refer below video kzread.info/dash/bejne/oXqqw9uhlNrRp7Q.html

  • @aanyarustagi3450

    @aanyarustagi3450

    2 жыл бұрын

    @@DataMagicAI ok,thank you so much!!

  • @zeyadhesham8309
    @zeyadhesham83092 жыл бұрын

    this does not work anymore, it requires an auth code, and even when I do give it the auth code, it still does not work

  • @DataMagicAI

    @DataMagicAI

    2 жыл бұрын

    Ohhh, Once time permits...I will check it and try to sort it out. Thanks for your comment.

  • @apoorva3635

    @apoorva3635

    Жыл бұрын

    !ngrok authtoken "ENTER AUTH CODE". This line worked for me.

  • @appleapple1763
    @appleapple1763 Жыл бұрын

    do you have github for this?

  • @DataMagicAI

    @DataMagicAI

    Жыл бұрын

    I guess, nope

  • @girijavarma7742
    @girijavarma77422 жыл бұрын

    how to run the pretrained teachable machine model with flask

  • @DataMagicAI

    @DataMagicAI

    2 жыл бұрын

    You first need to tune pretrained model and then you can use tunned model with flask.

  • @girijavarma7742

    @girijavarma7742

    2 жыл бұрын

    Actually i have the pretrained model and I runned it with falak and ngrok but still I'm not getting the localhost running

  • @Noob234

    @Noob234

    2 жыл бұрын

    @@girijavarma7742 flask**

  • @bhavibansal8210
    @bhavibansal82102 жыл бұрын

    why is it asking to sign up and download authtoken?

  • @DataMagicAI

    @DataMagicAI

    2 жыл бұрын

    When you are connecting your Google drive to Colab notebook. You need to give the acces permission so it can access files form drive.

  • @bhavibansal8210

    @bhavibansal8210

    2 жыл бұрын

    @@DataMagicAI why is it asking when opening the ngrok link?

  • @abhilashathakre5170
    @abhilashathakre51702 жыл бұрын

    Why is it saying to download and login in that app?

  • @DataMagicAI

    @DataMagicAI

    2 жыл бұрын

    Can you breif on the issue? When n where exactly you are getting it...

  • @hsjdjdkdk

    @hsjdjdkdk

    2 жыл бұрын

    how update python at Google Colab I'm use From System Android

  • @vtrandal
    @vtrandal Жыл бұрын

    just do it. stop helping beginners who don't know which end is up

  • @DataMagicAI

    @DataMagicAI

    Жыл бұрын

    I am here for everyone, will do it👍🏻

  • @khyathi4700
    @khyathi4700 Жыл бұрын

    Hello, How do I overcome "ERR_NGROK_6022" error? It says "install authtoken and restart agent", but I don't have any idea how to do that.. the commands in websites don't work here.. no one explained how to do that in Google colab. I'm desparate for your help!! Please tell me what to do asap

  • @arjun-ou2hm

    @arjun-ou2hm

    Жыл бұрын

    How tó solve this error

  • @khyathi4700

    @khyathi4700

    Жыл бұрын

    @@arjun-ou2hm Hi, in the end I wasn't able to solve the error, I instead used 'gradio' and created a simple interface. (The sole reason I wanted to use flask was to create an interface so I replaced it with gradio in a blink)

  • @rishabhraj9051
    @rishabhraj90513 жыл бұрын

    please share the code and template

  • @DataMagicAI

    @DataMagicAI

    3 жыл бұрын

    Yeah sure! I missed to add code link.

  • @DataMagicAI

    @DataMagicAI

    3 жыл бұрын

    GitHub link added in the description box