How to Run Streamlit on Colab with Pyngrok (Free Working 2022) | Run Flask on Colab

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

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

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

    thank you very much, last few days I got errors when using localtunnel but now I overcome the crisis thanks to you.

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

    Thank you for making this video so fast after raising issue in previous video. Thank you👌😁

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

      Thanks for the appreciation. I noticed localtunnel was down so wanted to quickly share this since many college students rely on such solutions for their projects. I'm glad you liked the video :)

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

    This was wildly helpful.
    A lot of other things was just really annoying work with and watch, but this worked perfectly, thank you so much!!

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

      Thank you. I'm glad it worked. Sometimes these solutions go down and might not work, so it's partly luck :)

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

      @@1littlecoder Lol let's hope!
      Also since google colab tends to connect and reconnect, is there a way to keep streamlit running "forever"?
      Whenever my google colab needs to restart, my streamlit seems to go down as well.

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

      You can deploy it on Hugging Face Spaces or Streamlit Cloud but then those would be public links

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

    Thank you it worked and saved our project 👍

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

    thank you professor work perfectly ! the only one since i try many tuto

  • @ΓερασιμίναΣτεφανάτου-φ2ξ
    @ΓερασιμίναΣτεφανάτου-φ2ξ ปีที่แล้ว +3

    it keeps giving me this error no matter what i change PyngrokNgrokHTTPError: ngrok client exception, API returned 400: {"error_code":102,"status_code":400,"msg":"invalid tunnel configuration","details":{"err":"yaml: unmarshal errors:
    line 1: field port not found in type config.HTTPv2Tunnel"}}

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

      I got the same problem. Do You have a solution for that??

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

      Same.

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

      same problem here, did you find a solution?

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

      I think the Error is saying that for HTTPv2Tunnel you can't specify the port like that, instead edit the ngrok.yml file and append tunnels:
      my_tunnel:
      proto: http
      addr: 8501
      to the file,
      and run url = ngrok.connect() without the port
      Honestly my knowledge of networking is shit so please let me know that worked for you, hope it helps

  • @milanm.mathew4889
    @milanm.mathew4889 2 ปีที่แล้ว +2

    Thankyou for the video!
    I will try this method

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

      Let me know how it goes

    • @milanm.mathew4889
      @milanm.mathew4889 2 ปีที่แล้ว +2

      @@1littlecoder You are a life saver🙌🙌
      It worked perfectly!!

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

      My pleasure :)

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

    when i click the link i.e the url link only a blank page appears.

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

      Did you do the authentication?

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

      @@1littlecoder sorryit was my mistake i had a problem with the internet😊

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

    thank u for this video it was very helpful

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

      Thanks, I'm glad it was helpful

  • @gautamsaraf-i5p
    @gautamsaraf-i5p ปีที่แล้ว +1

    it gives me this error:
    grok client exception, API returned 400: {"error_code":102,"status_code":400,"msg":"invalid tunnel configuration","details":{"err":"yaml: unmarshal errors:
    line 1: field port not found in type config.HTTPv2Tunnel"}}
    please solve this error

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

    Followed this tutorial but it still isn't working for me. I turned off the firewall and tried as well. Still no. I get an error saying - "This site can’t be reached. localhost refused to connect."
    Please help me with the same.

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

      Did you try any different method?

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

    Bro run aguthu bro, vera leverl. Live la change panna na mudithuuuuu

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

    Thanks for the tutorial, how can I stop the agent session with the free account? It won't let me click on it with that type of account

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

      If you see the colab, there's a comment at the bottom that shows how to get the list of active tunnels and you can use ngrok kill to stop them

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

    Thank you so much, it helped a lot. My app worked local properly but while deploying I got error file not found (dataset) by streamlit, seems I couldnt give proper path of my dataset in colab. It would be nice of you if you also explain other steps 🌺🌺

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

      Thank you, Were you trying to deploy locally - from your computer or Google Colab or some other Cloud server?

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

      @@1littlecoder from Google colab

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

    A video on the following would be great:
    How can I deploy streamlit app into an auto scaling environment, say in AWS or using other cloud providers?
    How can I give a custom domain to it?
    Is it viable and possible to actually build a product with authentication and analytics using Streamlit right now?

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

      Thank you I'll explore this. The answer to all these is yes at this point. But need to put together a project like that.

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

    Will this run in a jupyter notebook cell as well ?

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

      Nope

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

      @@1littlecoder Does the ngrok configuration file need to be set up for this to work ?

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

    Create a video on paraphrasing of paragraphs not a single line. I saw videos on that but not enough and accurate.Thanks

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

      Great suggestion! I'll do one new. Do you have any particular type of content - like News or review or something?

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

    Thankyou

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

    doesnt work on my windows :(

    • @1littlecoder
      @1littlecoder  ปีที่แล้ว

      Sorry I don't have windows to test

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

      @@1littlecoder sad :( thanks anyway

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

    Thenks for the video. It is really helpful. I am having a problem when use the line
    !nohup streamlit run app.py --server.port 80 &
    url = ngrok.connect(port = '80')
    print(url) the system show me the next error --> 456 response = urlopen(request, data, timeout)
    457 response_data = response.read().decode("utf-8")
    PyngrokNgrokHTTPError: ngrok client exception, API returned 502: {"error_code":103,"status_code":502,"msg":"failed to start tunnel","details":{"err":"EOF"}}. Could you help me with that?

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

      I got same problem did u find any solution

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

    NOT WORKING for me. Error code = ERR_NGROK_6024. Could you please help me

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

      Did you try any other method?

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

      @@1littlecoder Yes, earlier I was using npx localtunnel but it stopped working and do not generate browser link. BTW thank you for the prompt reply.

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

      @@mohdmohtashim3572 did u ever find a solution??