How to Run Streamlit Apps From Colab

Поділитися
Вставка
  • Опубліковано 15 січ 2025

КОМЕНТАРІ • 94

  • @fredbaafi9013
    @fredbaafi9013 3 роки тому +7

    Hi J, I get "failed to complete tunnel connection" whenever I run my URL and open the Ngrok Tunnel link given... Can you please help me out

  • @frenchiechua7247
    @frenchiechua7247 3 роки тому +4

    Thank you for the video, but can you help me, I already follow the steps and It doesn't show, it said "Hmmm… can't reach this page", I even installed pyngrok version 4.1.10 and 4.1.1 but it's still the same, I hope you can help me

  • @busraduygu7324
    @busraduygu7324 4 роки тому +2

    Hello, I want to show a model I trained on google colab in web application. It worked like you did. But it doesn't work anymore gives an error tunnel not found. Please help me.

  • @neelabhshrivastava920
    @neelabhshrivastava920 9 місяців тому +1

    showing error in public_url=ngrok.connect(port='8501') every time

  • @_kaira4130
    @_kaira4130 3 роки тому +4

    I like the way you explain, bro! Inspiring contents!

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

      I appreciate that! Glad it was inspiring

  • @chronicfantastic
    @chronicfantastic 4 роки тому +2

    Nice! Will definitely be using this. big ups to you and streamlit devs

  • @devruppbanerjee909
    @devruppbanerjee909 4 роки тому +3

    facing failed to connect tunnel connection error following exactly these instructions. need a solution urgent please someone. its saying client failed to establish connection with local address

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

      same here

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

      @@annisaolgazerlinda any solution you found for this ?

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

      @@Shannyrace change the installation of pyngrok version to a spesific version of 4.1.1

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

      @@annisaolgazerlinda hello, may I ask why I have this error "Hmmm… can't reach this page"

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

      @@frenchiechua7247 maybe you can re run your collab code from the very first line, bcz i think the streamlit link is not available anymore

  • @asmitadhungana3790
    @asmitadhungana3790 4 роки тому +6

    Your videos are so informative... I just wish that your sound would be a little louder... I always have to listen to these videos using headphones... Can you please check for that? And thanks a lot for this one too! :D

    • @JCharisTech
      @JCharisTech  4 роки тому +1

      Noted! Asmita, I will work on it. Glad they are informative. Thanks

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

    the screen at 12:21 is what I got at the end of my code. What do I do? Also my local host is not responding :(

  • @chronicfantastic
    @chronicfantastic 4 роки тому +1

    A great tut jessie. will use to impress my peers. stay blessed brother

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

    How do I unzip on a google chrome laptop for the installation?

  • @helloworld7886
    @helloworld7886 4 роки тому +2

    Veryyy helpful Brother. Thanks A lot. Keep posting more such content 🙌🙌

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

    Do I have to pip install streamlit and pyngrok every day I open this Colab session fresh?

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

      Yes gsrini, that is how Google Colab works - closing the colab exist and clears of all your third party packages. Hope this helps

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

      @@JCharisTech there is a work around to provide the installation path for modules in Google drive. I have done that for modules like yfinance as I no longer have to pip install them everytime in Colab.
      But Streamlit doesn't want to work that way for some reasonm

  • @gnanendraavvaru3906
    @gnanendraavvaru3906 4 роки тому +2

    You made my life easy. I am trying to deploy my streamlit app online. I tried heroku, netlify, pythonanywhere and what not. They all failed due to my big model file.
    Finally u did it with colab and ngrok🔥🔥🔥. Now my app is running online. Thank you ❤️
    P.S. please make a tutorial on removing useless tunnels and processes.

    • @DeepakChauhan-mn5jw
      @DeepakChauhan-mn5jw 4 роки тому

      Hi Gnanendra, Would you like to share your app link if it's in public?

    • @gnanendraavvaru3906
      @gnanendraavvaru3906 4 роки тому

      @@DeepakChauhan-mn5jw The app got expired after few hours. This method is not for a permanent website. This is just for temporary hosting. Anyways, here's my github repo github.com/golden-panther/glaucoma-detector

    • @DeepakChauhan-mn5jw
      @DeepakChauhan-mn5jw 4 роки тому

      @@gnanendraavvaru3906 Thanks anyways. I'm having the same issue with hosting the app. Let's see if an angel comes up with a video.

  • @kevinkumar7840
    @kevinkumar7840 4 роки тому +2

    Hi Jessie, May I know how do you hide the code after "ngrok authtoken " ? Do you use store the code in a yml file or something like that?

    • @JCharisTech
      @JCharisTech  4 роки тому

      Hi Kevin, running the ngrok authtoken **** will add your authtoken to the default ngrok.yml configuration file on your colab instance.
      But you can always go back your dashboard for it.
      I think You can also use the --config option .
      Hope this helps

  • @kasibantegeoffrey1054
    @kasibantegeoffrey1054 4 роки тому +1

    Nice tutorial. Will go through it practically

    • @JCharisTech
      @JCharisTech  4 роки тому

      Glad to hear that. Thanks Geoffrey

  • @dantealonso7174
    @dantealonso7174 4 роки тому +1

    Definitivamente compraré tu curso ;)

  • @JonghyeonKim
    @JonghyeonKim 4 роки тому +2

    Bro, it is very helpful to me. thanks

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

    Hi, it didn't work for me, it display the error: "Failed to complete tunnel connection..."

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

      It may be due to ngrok settings

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

      @@JCharisTech it might be. However, I tried on VS Code and it worked. Thank you anyway 😀🤞

  • @dhanashreebidwai4520
    @dhanashreebidwai4520 4 роки тому +1

    Make video on end to end ml new projects till deployment in flask etc..

  • @funky0108
    @funky0108 4 роки тому +1

    Can u tell me please how to run streamlit code of sublime in window 10?

    • @JCharisTech
      @JCharisTech  4 роки тому

      Hi, you can just install streamlit with pip and then run it
      eg
      pip install streamlit
      # To run
      streamlit run app.py
      Hope this helps

    • @funky0108
      @funky0108 4 роки тому

      @@JCharisTechActually when I run the program then I got this error
      OSError: [WinError 10013] An attempt was made to access a socket in a way forbidden by its access permissions
      Can u tell me how to resolve this error?

  • @user-or7ji5hv8y
    @user-or7ji5hv8y 4 роки тому +2

    really useful, but I think if you have a better microphone, that would be really helpful. sometimes, hard to hear clearly.

  • @clark87
    @clark87 4 роки тому +1

    very very great lecture, thanks

  • @Gg-ge5jp
    @Gg-ge5jp Місяць тому

    Thank you for the tutorial. I used this method and it worked perfectly. However, I started getting error after making few adjustments to my app and discovered that I had exceeded the free version. I paid to upgrade because I need the app for an important presentation but unfortunately, I still can’t get it to connect. I need urgent help and will really appreciate any suggestions that might help. Thanks

  • @kyomdonalddogo5775
    @kyomdonalddogo5775 4 роки тому +2

    Jessie I love your video. Please I want to ask you for tips on how to deploy a seq2seq model(like a web app) to be used on colab using streamlit? Thank you

    • @JCharisTech
      @JCharisTech  4 роки тому

      Great suggestion! Donald

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

      did you do it? I tried, but didn't make it yet

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

      @@galkim1 no....it was kinda complex for me....so I fine tuning my models
      But please any update tell me
      Thanks

  • @ahmedboulahia6033
    @ahmedboulahia6033 4 роки тому +5

    Thank you so much! Very helpful I subscribed with my 2 accounts, with love from Tunisia 👍

    • @JCharisTech
      @JCharisTech  4 роки тому +1

      Awesome! Thank you! Ahmed,Merci

  • @malvica-lewis
    @malvica-lewis 3 роки тому +1

    I get the following error. Please help
    NameError: name 'st' is not defined
    Traceback:
    File "/usr/local/lib/python3.7/dist-packages/streamlit/script_runner.py", line 338, in _run_script
    exec(code, module.__dict__)

    • @malvica-lewis
      @malvica-lewis 3 роки тому

      I'm using Google Colab

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

      Hello Malvica, pls you will have to install streamlit and then import it first eg
      !pip install streamlit
      import streamlit as st
      Hope this helps

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

    Iam getting error message after i opened url saying that dail tcp connection refused. Please help me

  • @scitylanaltd9761
    @scitylanaltd9761 3 місяці тому

    I keep getting this error : ERROR: Could not find a version that satisfies the requirement pereg (from versions: none)
    ERROR: No matching distribution found for pereg

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

    Hey...it is a great guide! but what should I do if I need to call for a file in one of my functions? thanks so much man!

  • @RayRay-ij8hs
    @RayRay-ij8hs Рік тому

    Had an error when I got to this statement, publ_url = ngrok.connect(port = '8501')

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

    Thanks a lot sir!

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

    thank you a lot

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

      Always welcome. Glad it helped

  • @khalidbouziane4005
    @khalidbouziane4005 4 роки тому +1

    Thanks for this tutorial, is there a way to convert streamlit app to a. exe file, I tried with pyinstaller but it did not work, not only for me but when I google, the same happened with others.. So if you know a way to do it, could you please share it. Thank you in advance.

    • @JCharisTech
      @JCharisTech  4 роки тому

      Not that I know of.And I don't think it is possible for now

  • @ranasagar699
    @ranasagar699 4 роки тому +1

    Final I got streamlit video thanks for amazing video ...can questions I would like ask u sir 🙏 please please help me how to connect html file with the help of streamlit please help me

    • @JCharisTech
      @JCharisTech  4 роки тому +1

      Hi Rana, you can use the static components (components.html() ) or st.markdown() for the html.
      Hope this helps

  • @myaccount6343
    @myaccount6343 4 роки тому +2

    Hi. your tutorial is very cool. According to your tutorial, I can successfully build a streamlit app on colab with a temporary url generated by free ngrok account. Then, I upgraded my ngrok account and paid money, so that I can have a fixed url instead of a 8-hours valid temporarily url. However, I cannot build the streamlit with my fixed subdomain(url). When I open my fixed url, it always says: The connection to http:/xxxxxxx .ngrok.io was successfully tunneled to your ngrok client, but the client failed to establish a connection to the local address localhost:80.
    Make sure that a web service is running on localhost:80 and that it is a valid address.
    The error encountered was: dial tcp 127.0.0.1:80: connect: connection refused.
    How come? I will extremely grateful if you can help me!

    • @mayanktripathi4u
      @mayanktripathi4u 4 роки тому

      Is the issue resolved, if so please do share how did you fixed it. I am also facing same issue.

    • @shantalamukherjee3506
      @shantalamukherjee3506 4 роки тому

      I have a free ngrok account and I'm getting exactly the same error. The strange thing is, when I tried the method in this video a couple of months ago, it worked absolutely fine. I have started getting this error very recently.

    • @mayanktripathi4u
      @mayanktripathi4u 4 роки тому +5

      I have resolved the issue by using older version of ngrok. If having the error try installing old version. In my case i have used 4.1.1 version, and issue resolved.
      !pip install pyngrok==4.1.1

    • @shantalamukherjee3506
      @shantalamukherjee3506 4 роки тому +1

      @@mayanktripathi4u Thanks so much. I re-ran my Colab notebook with the older version of ngrok as you said, and it works now!

    • @aienthusiast5375
      @aienthusiast5375 4 роки тому +1

      @@mayanktripathi4u Thanks,brother.

  • @ranasagar699
    @ranasagar699 4 роки тому +1

    Can ur create end to end data science project on Google colab 🙏🙏🙏that would be very helpful because now a days GPU is not cheap and no one can afford it that's why 🙏🙏

    • @JCharisTech
      @JCharisTech  4 роки тому +1

      Nice Suggestion Rana, Thank you

    • @ranasagar699
      @ranasagar699 4 роки тому

      @@JCharisTech waiting 😀sir 🙏 for ur video

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

    Thaks

  • @Manii313
    @Manii313 4 роки тому +1

    Great content as usual !

    • @JCharisTech
      @JCharisTech  4 роки тому

      Much appreciated! Glad they helped

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

    Speak in a lower volume! People are accidentally hearing you man!

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

    hi I really need help. I've run everything and the url works as well however there is no content. I notice after I put in the %%writefile app.py all the code does not light up, I think it is not being coded. Any ways to solve this please?

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

    How to fix, # Setup a tunnel to the streamlit port 8501
    Error at - public_url = ngrok.connect(port='8501')
    WARNING:pyngrok.process.ngrok:t=2023-04-21T00:01:11+0000 lvl=warn msg="invalid tunnel configuration" pg=/api/tunnels id=1ba6d4761ef71a5c err="yaml: unmarshal errors:
    line 1: field port not found in type config.HTTPv2Tunnel"
    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"}}

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

      same error! pls lmk if u were able to fix it!

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

      @@Literature4343 I already fixed it, I don't have my laptop with me today, will share it day after tomorrow

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

      @@zaheerbeg4810 thxx!!!

    • @thelionheart3562
      @thelionheart3562 Рік тому +2

      @@Literature4343 remove - port just = ngrok.connect(8501)