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

Поділитися
Вставка
  • Опубліковано 1 лис 2024

КОМЕНТАРІ • 66

  • @rialtosan
    @rialtosan 6 місяців тому +1

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

  • @ianpropst-campbell6028
    @ianpropst-campbell6028 Рік тому +1

    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.

  • @anoopashware9539
    @anoopashware9539 3 роки тому +2

    this is really awsome

  • @mehdismaeili3743
    @mehdismaeili3743 6 місяців тому

    Excellent.

  • @muddassarjilani4637
    @muddassarjilani4637 2 роки тому +1

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

  • @alesue6575
    @alesue6575 3 роки тому

    Thanks a lot. this video is very unique

  • @rouajaafar6600
    @rouajaafar6600 3 роки тому +5

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

  • @ms-ej4gd
    @ms-ej4gd 11 місяців тому +1

    nice video

  • @ksayet1
    @ksayet1 2 роки тому

    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.

  • @MyVBooks
    @MyVBooks Рік тому

    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.

  • @janvi5835
    @janvi5835 Рік тому

    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  Рік тому

      You can do it in json format.

    • @janvi5835
      @janvi5835 Рік тому

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

  • @rajrajabathor9030
    @rajrajabathor9030 2 роки тому +1

    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

  • @rajrajabathor9030
    @rajrajabathor9030 2 роки тому

    Awesome Boss !

  • @noimeenoi
    @noimeenoi 2 роки тому

    Can we use bootstrap for the user interface?

    • @DataMagicAI
      @DataMagicAI  2 роки тому +1

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

  • @knowledgegetter
    @knowledgegetter Рік тому

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

  • @sreebhavaninarayana6944
    @sreebhavaninarayana6944 2 роки тому

    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

  • @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.

  • @appleapple1763
    @appleapple1763 2 роки тому

    do you have github for this?

  • @aanyarustagi3450
    @aanyarustagi3450 2 роки тому

    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 роки тому +1

      please reply i have a practical tomorrow

    • @hsjdjdkdk
      @hsjdjdkdk 2 роки тому

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

  • @zeyadhesham8309
    @zeyadhesham8309 2 роки тому +2

    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 2 роки тому

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

  • @khyathi4700
    @khyathi4700 Рік тому +1

    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)

  • @girijavarma7742
    @girijavarma7742 2 роки тому

    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 роки тому +1

      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**

  • @aanyarustagi3450
    @aanyarustagi3450 2 роки тому

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

    • @DataMagicAI
      @DataMagicAI  2 роки тому +1

      You can make use of Keras to load the model. Refer below video ua-cam.com/video/oFvayhdwkwQ/v-deo.html

    • @aanyarustagi3450
      @aanyarustagi3450 2 роки тому

      @@DataMagicAI ok,thank you so much!!

  • @arjun-ou2hm
    @arjun-ou2hm Рік тому

    The link will generated but not working

  • @F.rad2024
    @F.rad2024 5 місяців тому

    🎉🎉🎉🎉

  • @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👍🏻

  • @bhavibansal8210
    @bhavibansal8210 2 роки тому

    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
    @abhilashathakre5170 2 роки тому

    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

  • @rishabhraj9051
    @rishabhraj9051 3 роки тому

    please share the code and template

    • @DataMagicAI
      @DataMagicAI  3 роки тому

      Yeah sure! I missed to add code link.

    • @DataMagicAI
      @DataMagicAI  3 роки тому +1

      GitHub link added in the description box

  • @GopinathGM
    @GopinathGM 7 місяців тому

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