Тёмный

Run Streamlit App on Colab without Ngrok (LocalTunnel) 

1littlecoder
Подписаться 83 тыс.
Просмотров 44 тыс.
50% 1

How to run Streamlit App on Google Colab without Ngrok or any other dependency? Your solution is to use localtunnel - a free opensource npm library. Step by Step Guide.
localtunnel - github.com/loc...
#streamlit #colab #mlapp
Related Videos:
Deploy Streamlit Flask App from Colab using remoteit (ngrok alternative) - • Deploy Streamlit Flask...
Quickly deploy ML WebApps from Google Colab using ngrok - • Quickly deploy ML WebA...

Опубликовано:

 

28 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 157   
@thecodest2498
@thecodest2498 2 года назад
Thank you soooooo much. This was really helpful. Keep on making this kind of helpful tutorial. Thank you soo much once again
@1littlecoder
@1littlecoder 2 года назад
I'm glad you found it helpful :) Thank you
@alexiadeboynes4656
@alexiadeboynes4656 Год назад
Great Tutorial thank you. Its asking for a endpoint IP: I put mine and its not working. what should i use? thank you!!
@nitinsharmatheone2292
@nitinsharmatheone2292 Год назад
Same question bro...
@Synergy5260
@Synergy5260 2 года назад
thank you so much i had no idea why ngrok was not working and wasted so much time on that
@1littlecoder
@1littlecoder 2 года назад
Glad to help ☺️
@michalbotor
@michalbotor Год назад
bless you! what a fantastic solution for people who like to experiment in colab! works like a charm.
@ExploreMalaya
@ExploreMalaya 2 года назад
Thanks buddy ! Keep up the good work.
@1littlecoder
@1littlecoder 2 года назад
Thank you sir
@nicolegrace287
@nicolegrace287 Год назад
hi I manage to run the URL but nothing appears on my streamlit no matter what I write. Even the things I write didn't light up like in your video, I dont know what is going wrong I follow exactly what you did
@dhanshreerajput9891
@dhanshreerajput9891 5 месяцев назад
Same happened with me
@johnlocke4695
@johnlocke4695 5 месяцев назад
Is it a work laptop?
@rahulpareek1881
@rahulpareek1881 Месяц назад
once i click on "your url is" the page ask me tunnel password ?
@johnadam7996
@johnadam7996 3 года назад
Thank you Sir for this amazing tutorial!!!
@1littlecoder
@1littlecoder 3 года назад
Pleasure sir
@1littlecoder
@1littlecoder 3 года назад
Pleasure sir
@aigerimtarikhova4048
@aigerimtarikhova4048 2 года назад
Thank you so much, you are the best🙌🏻
@1littlecoder
@1littlecoder 2 года назад
Thank you :)
@analyticseveryday4019
@analyticseveryday4019 5 месяцев назад
hi, firstly thanks for the tutorial , you teaching is great. Whenever i try to tunnel, the url fires up and asks - To access the website, please enter the tunnel password below. , what passowrd should i put in here kindly help
@1littlecoder
@1littlecoder 5 месяцев назад
hey, it's the ip address. that's what you need to fill in the password
@tamharjeetsinghwalia181
@tamharjeetsinghwalia181 5 месяцев назад
@@1littlecoder yes but we need the ip address of the colab notebook. How to get that?
@vishwaraghavareddymamindla
@vishwaraghavareddymamindla 3 месяца назад
​@@tamharjeetsinghwalia181did you get it working? If yes, could you please share what you have done
@Afroinnovate
@Afroinnovate 11 месяцев назад
Great work man, I tried it on my end but with no lucks, it says it's running, when I open the tunnel link it ask for an IP and when I submited the IP address it wait abit and then return 504, the streamlit still running though
@devichandini3080
@devichandini3080 Год назад
Hi , may i know what to do after installing local tunnel in colab plz
@backendnexus
@backendnexus 14 дней назад
Can i run minecraft server using it
@karrikarthik6936
@karrikarthik6936 Год назад
I am not getting ip address as you got in your implementattion
@leenanesamani547
@leenanesamani547 2 года назад
should we use the same port number or can use a different one?
@1littlecoder
@1littlecoder 2 года назад
You can use any port number then you need to run the streamlit app on that port
@MisalRaj
@MisalRaj 3 года назад
So will this work same in case of Gradio app?
@1littlecoder
@1littlecoder 3 года назад
Iirc Gradio itself gives a temporary url
@christianmusicisdope
@christianmusicisdope 3 месяца назад
Fantastic video
@gladwinguster1229
@gladwinguster1229 Год назад
the link is not generating on my google colab
@ehsankhosrojerdi9815
@ehsankhosrojerdi9815 11 месяцев назад
Same for me
@yazanrisheh5127
@yazanrisheh5127 Год назад
I made my own streamlit app and I wrote the code you provided + npx localtunnel --port 8501 but I keep getting this error: Hmmm. can't reach this page
@roadMapLearner
@roadMapLearner 3 года назад
This is a great video
@1littlecoder
@1littlecoder 3 года назад
Thank you Anjali
@danilodantas8869
@danilodantas8869 2 года назад
Thanks so much!
@1littlecoder
@1littlecoder 2 года назад
You're welcome!
@dermimalika2260
@dermimalika2260 2 года назад
Thank u so much that was so helpful. But how can i use my model variables in app.py file
@1littlecoder
@1littlecoder 2 года назад
Thank you. What do you mean by model variables? Could you please elaborate
@othukeajaye2415
@othukeajaye2415 Год назад
Can I use this in a databricks environment? I tried and the npx is not installing automatically. Here's the error: /bin/bash: npx: command not found
@1littlecoder
@1littlecoder Год назад
Why do you want to do this on Databricks?
@othukeajaye2415
@othukeajaye2415 Год назад
@@1littlecoder Let's say the app is part of a project centralized in the azure space. Does it not work with databricks?
@deepthiangara5817
@deepthiangara5817 Год назад
Thank you so much, I could now run a streamlit application in colab. Could you also tell us, how would we read a csv file from my drive and play with the data in streamlit?
@1littlecoder
@1littlecoder Год назад
Any particular reason you want to do o these on colab?
@deepthiangara5817
@deepthiangara5817 Год назад
@@1littlecoder I am working on a ML Project for which I am doing some EDA and wanted to present to my team with streamlit. I need to read a csv file from google drive and dynamically generate st components based on csv features values. In colab I could read the file but streamlit is not able to read drive file.
@Porkupine69
@Porkupine69 2 года назад
Is there a way to easily rerun the app? because when I want to make changes, I need to stop the tunnel cell to make changes in the funnel cell I was about to ask this question but I found a solution, I tried to modify app.py directly and it worked Click the folder icon on the left and click app.py, it opens for editing on the right. Happy Coding!
@1littlecoder
@1littlecoder 2 года назад
That's very nice of you to share the solution
@ankanmazumdar5000
@ankanmazumdar5000 2 года назад
thanx brother, it worked!!
@1littlecoder
@1littlecoder 2 года назад
Great bro
@fouziaanjums6475
@fouziaanjums6475 2 года назад
Is the local tunnel still working for you @ANKAN MAZUMDAR
@ankanmazumdar5000
@ankanmazumdar5000 2 года назад
@@fouziaanjums6475 yes
@gunngunn6763
@gunngunn6763 3 года назад
great..thank you...
@AllimardanBhadurkhan-w2b
@AllimardanBhadurkhan-w2b Год назад
Thank you so much
@1littlecoder
@1littlecoder Год назад
Glad it's helpful
@Shobhitchoudhary321
@Shobhitchoudhary321 2 месяца назад
Thanks a lot
@darkexodus6404
@darkexodus6404 2 года назад
Thank you!
@1littlecoder
@1littlecoder 2 года назад
You're welcome
@Skandawin78
@Skandawin78 2 года назад
Thanks Bro!
@1littlecoder
@1littlecoder 2 года назад
Thanks Bro :)
@naraendrareddy273
@naraendrareddy273 2 года назад
how do you learn all these? Bruh I struggle to remember the spelling of Diarrhoea
@santoshreddy272
@santoshreddy272 2 года назад
Hi I'm facing error with '504 Gateway Time-out'
@1littlecoder
@1littlecoder 2 года назад
Try to reset your colab instance and see if it works
@Pravar
@Pravar Год назад
this is asking for endpoint address
@alexiadeboynes4656
@alexiadeboynes4656 Год назад
does anyone know the endpoint?
@RafaelAntonioRiveraRodriguez
Gracias por el aporte, muy útil
@asmitamondal705
@asmitamondal705 16 дней назад
asking for tunnel password. how to get that?
@1littlecoder
@1littlecoder 16 дней назад
wget -q -O - ipv4.icanhazip.com
@rajeshwarim2906
@rajeshwarim2906 2 года назад
Can anyone say how much it will take for running the locatunnel comment? For me its taking too long
@1littlecoder
@1littlecoder 2 года назад
It would take a couple of mins..not more than that
@oluwaseunakinkuolie7664
@oluwaseunakinkuolie7664 Год назад
It’s taking too long for me , running for about 39mins now
@sallu.mandya1995
@sallu.mandya1995 3 года назад
thx
@1littlecoder
@1littlecoder 3 года назад
You're welcome ✅
@ahmedyehia4846
@ahmedyehia4846 Год назад
you're amazing
@KomalSant
@KomalSant Год назад
can you tell the ways to bypass that page ?
@1littlecoder
@1littlecoder Год назад
I think you need to enter your ip. Did it give you that option?
@BrokenRecord-i7q
@BrokenRecord-i7q Год назад
What's ngrok?
@1littlecoder
@1littlecoder Год назад
3rd party tunneling service
@BrokenRecord-i7q
@BrokenRecord-i7q Год назад
@@1littlecoder that's so sweet of you to actually reply ❤️
@KomalSant
@KomalSant Год назад
the page is asking for password
@1littlecoder
@1littlecoder Год назад
That's your current IP address
@KomalSant
@KomalSant Год назад
where can i find it@@1littlecoder
@KomalSant
@KomalSant Год назад
yes i did put my ip as password not accepting@@1littlecoder
@ButchCassidyAndSundanceKid
@ButchCassidyAndSundanceKid 6 месяцев назад
Please DO NOT try this, google has banned it. If you do, you'll get kicked out of Colab permanently.
@amritwt
@amritwt 6 месяцев назад
what is the alternative? please let me know
@MP3TONEofficial
@MP3TONEofficial Год назад
bro really helpful so thankful to you i was getting error on the other way and was trying to get a solution and finally this way had solved my problem bro so thankful i cant express how happy i am now 👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍
@1littlecoder
@1littlecoder Год назад
Thank you :)
@yogiondabeat2383
@yogiondabeat2383 2 года назад
Super helpful, I was unbale to run streamlit from the command prompt but this solved my issue thank you
@1littlecoder
@1littlecoder 2 года назад
My pleasure. Thanks for the comment
@Shobhitchoudhary321
@Shobhitchoudhary321 2 месяца назад
Thanks alot!!!
@MyBrianBailey
@MyBrianBailey 2 года назад
Great job on this tutorial; looked at several other ngrok tutorials, a lot of issues with using different versions of streamlit and then it would have huge warnings with a firewall that stopped the link- this all worked great !!!
@1littlecoder
@1littlecoder 2 года назад
Thank you so much. Glad it helped.
@zeeshan8890
@zeeshan8890 19 дней назад
The link says it requires password
@ensaruslu409
@ensaruslu409 2 года назад
it takes too long to connect streamlit, says connecting to streamlit server like an hour and never show up
@1littlecoder
@1littlecoder 2 года назад
I think you might have to restart and try
@Vishnuram-007
@Vishnuram-007 2 года назад
Thankyou sir . I
@1littlecoder
@1littlecoder 2 года назад
My pleasure
@muhammadafrizal111
@muhammadafrizal111 Год назад
Its asking for a endpoint IP: I put mine and its not working. what should i use?
@sanjanaj6542
@sanjanaj6542 Год назад
Using the IP provided in the external URL worked for me.
@ushnakhan198
@ushnakhan198 5 месяцев назад
its not working for me@@sanjanaj6542
@valentinemariarodriguesque5367
@valentinemariarodriguesque5367 2 года назад
You have no idea how grateful I'm right now. Thank Youuu
@1littlecoder
@1littlecoder 2 года назад
You are very kind for such a positive feedback. Thank you :)
@faroozrimaaz7092
@faroozrimaaz7092 Год назад
Very true.. my feeling right now
@sidindian1982
@sidindian1982 8 месяцев назад
thx a ton sir🙏🙏🙏🙏🙏🙏🙏
@tejayamani3087
@tejayamani3087 10 месяцев назад
hi,when i click on link generated by tunnel,it is directing me to the page to provide tunnel creator's public IP.what should i give there to open the streamlit app
@comfixit
@comfixit Год назад
This is a good finding (local tunnel) and use case. Well done.
@nithyamukthapuram5197
@nithyamukthapuram5197 2 года назад
URL is not coming. Don't know what's the issue, Can anyone help me out? I'm getting only Network URL and External URL.
@1littlecoder
@1littlecoder 2 года назад
Sorry for this naive question, are you running this on colab?
@fouziaanjums6475
@fouziaanjums6475 2 года назад
@@1littlecoder Hello, even i am facing the same issue, I am not getting the link for the web app as shown in 3:04, is the local tunnel down today? Because few days ago i did not face this type of issue.....Request you to please help out....
@rahulbhatt1995
@rahulbhatt1995 2 года назад
@@1littlecoder Not working for me as well __________________________________________________________________________________ 2022-06-25 13:21:46.509 INFO numexpr.utils: NumExpr defaulting to 2 threads. npx: installed 22 in 4.212s You can now view your Streamlit app in your browser. Network URL: 172.28.0.2:8501 External URL: 35.186.190.237:8501 __________________________________________________________________________________ Stuck after this !!!
@1littlecoder
@1littlecoder 2 года назад
@@fouziaanjums6475 did you try any alternative method like with ngrok? Did that work ?
@fouziaanjums6475
@fouziaanjums6475 2 года назад
@@1littlecoder Yeah i tried ngrok, but that too isn't working
@diegomoreno5599
@diegomoreno5599 3 года назад
keep it up
@1littlecoder
@1littlecoder 3 года назад
Thank you
@dhanshreerajput9891
@dhanshreerajput9891 5 месяцев назад
Hello im trying to put port as 8501 showing me error ppz help i have tried 5000 not working
@n.21
@n.21 Год назад
Can I interface an AI notebook model uploaded to collab with react app on my local pc? I can’t run the Ai model on my pc as it requires high specs and I don’t like the notebook style
@rommelalastra5992
@rommelalastra5992 8 месяцев назад
is it possible to run this all the time? same behavior as hosted web app? or need to run it manually?
@manasisingh294
@manasisingh294 2 года назад
What's with the app.py file? Could you elaborate on building that up first? I'm kinda stuck there.
@1littlecoder
@1littlecoder 2 года назад
app.py file is the streamlit app file that you run with streamit run command
@manasisingh294
@manasisingh294 2 года назад
@@1littlecoder cool, do you mind sharing any sort of template? Or what kind of content do you put inside?
@1littlecoder
@1littlecoder 2 года назад
@@manasisingh294 can you email me at my channel name at gmail dot com I'm a bit confused in understanding the requirements
@ahmadzaimhilmi
@ahmadzaimhilmi Год назад
This solution doesn't work anymore
@chetanchoudhary485
@chetanchoudhary485 5 месяцев назад
is this method also work for kaggle notebook ?
@ManoPrakash8
@ManoPrakash8 3 года назад
Thanks for sharing this..!! 😊👍🏾
@1littlecoder
@1littlecoder 3 года назад
Ah Thala hope you're doing good :)
@hurtadoorobioedwin2059
@hurtadoorobioedwin2059 Год назад
Excellent!
@1littlecoder
@1littlecoder Год назад
Thank you
@MisalRaj
@MisalRaj 3 года назад
Great info :)
@1littlecoder
@1littlecoder 3 года назад
Thank you :)
@pamidimukkalakrishnamurthy4970
Dude, I love you 3000!
@1littlecoder
@1littlecoder Год назад
Haha Thank you, I guess that's either the reference to the Port number or the Iron man movie :)
@paramodharmah7969
@paramodharmah7969 Год назад
@@1littlecoder 🙂👌
@baderyasser8527
@baderyasser8527 Год назад
thank you
@m.shiqofilla4246
@m.shiqofilla4246 2 года назад
Hello sir, very helpful tutorial, i wanna ask, can we edit our streamlit webpage while the localtunnel running?
@1littlecoder
@1littlecoder 2 года назад
Thank you. I don't think you can edit while running. You'd need to stop and edit and run again.
@aarounge
@aarounge 2 года назад
Is tunneling safe ?
@1littlecoder
@1littlecoder 2 года назад
Not all the time
@devanshverma5395
@devanshverma5395 2 года назад
The notebook will stop running after a few hours right? Is there a way to make it always run ? can we deploy this somehow on heroku etc.?
@1littlecoder
@1littlecoder 2 года назад
You can deploy it on Hugging Face Spaces - even with scheduled refresh - ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-8hOzsFETm4I.html
@devanshverma5395
@devanshverma5395 2 года назад
@@1littlecoder thankyou so much for the quick reply 🙏🏻
@XD-jb3hj
@XD-jb3hj 2 года назад
So, i am wondering are there any risk behind this operations? (like data privacy, security etc)
@1littlecoder
@1littlecoder 2 года назад
It's okay for temporary one but definitely not recommended as a permanent solution
@XD-jb3hj
@XD-jb3hj 2 года назад
@@1littlecoder thanks for the opinion, i think that's why a lot of web app dev jobs required flask or django rather than this.
@1littlecoder
@1littlecoder 2 года назад
@@XD-jb3hj very well said!
Далее
pumpkins #shorts
00:39
Просмотров 7 млн
ДЕНЬ УЧИТЕЛЯ В ШКОЛЕ
01:00
Просмотров 790 тыс.
The Streamlit Epic Overview (part 1/2)
13:06
Просмотров 55 тыс.
Streamlit: The Fastest Way To Build Python Apps?
11:57
Просмотров 115 тыс.
How to Convert a Streamlit App to an .EXE Executable
8:20
How to Deploy Your App to Streamlit Community Cloud
11:32
How to Run Streamlit Apps From Colab
12:48
Просмотров 32 тыс.
pumpkins #shorts
00:39
Просмотров 7 млн