Deploy Your Streamlit App To Render (Free Heroku Alternative)

Поділитися
Вставка
  • Опубліковано 21 лип 2024
  • 👉 Explore All My Excel Solutions: pythonandvba.com/solutions
    𝗗𝗘𝗦𝗖𝗥𝗜𝗣𝗧𝗜𝗢𝗡
    ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
    In this tutorial, I am going to show you how to deploy your streamlit web application for free on render. After this tutorial, your web application will be live on the internet and you could share it with the world.
    👩‍💻 𝗚𝗜𝗧 𝗖𝗢𝗠𝗠𝗔𝗡𝗗𝗦:
    git add .
    git commit -m "Enter your message here"
    git remote add origin github.com/[GitHubUserName]/[RepoName].git
    git push -u origin master
    🌍 𝗟𝗜𝗡𝗞𝗦:
    ▶ Create a digital CV: • Build A Digital Resume...
    ▶ Download Git: git-scm.com/downloads
    ▶ Render Website: render.com/
    ⭐ 𝗧𝗜𝗠𝗘𝗦𝗧𝗔𝗠𝗣𝗦:
    00:00 - Intro
    00:55 - Create a requirements file
    02:39 - Create a new repository
    03:18 - Push data to your repository
    05:34 - Deploy GitHub repo to render
    07:25 - Remarks regarding the free tier on render
    07:45 - How to update your live website
    09:20 - Outro
    𝗧𝗢𝗢𝗟𝗦 𝗔𝗡𝗗 𝗥𝗘𝗦𝗢𝗨𝗥𝗖𝗘𝗦
    ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
    🆓【𝗙𝗥𝗘𝗘】Excel Add-in (𝗠𝘆𝗧𝗼𝗼𝗹𝗕𝗲𝗹𝘁): pythonandvba.com/mytoolbelt
    📊 Dashboard Excel Add-In (𝗚𝗿𝗮𝗳𝗹𝘆): pythonandvba.com/grafly
    🎨 Cartoon Charts Excel Add-In (𝗖𝘂𝘁𝗲𝗣𝗹𝗼𝘁𝘀): pythonandvba.com/cuteplots
    🤪 Fun Emoji Excel Add-In (𝗘𝗺𝗼𝗷𝗶𝗳𝘆): pythonandvba.com/emojify
    📑 Excel Templates: pythonandvba.com/go/excel-tem...
    🎓 My Courses: pythonandvba.com/go/courses
    📚 Books, Tools, and More: pythonandvba.com/resources
    𝗖𝗢𝗡𝗡𝗘𝗖𝗧 𝗪𝗜𝗧𝗛 𝗠𝗘
    ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
    🔗 LinkedIn: / sven-bosau
    📸 Instagram: / codingisfun_official
    💻 GitHub: github.com/Sven-Bo
    💬 Discord: pythonandvba.com/discord
    📬 Contact: pythonandvba.com/contact
    ☕ 𝗕𝘂𝘆 𝗺𝗲 𝗮 𝗰𝗼𝗳𝗳𝗲𝗲?
    If you want to support this channel, you can buy me a coffee here:
    ▶ pythonandvba.com/coffee-donation

КОМЕНТАРІ • 229

  • @CodingIsFun
    @CodingIsFun  Рік тому +9

    *Happy Deployment!* 🚀
    *LINKS:* ⤵
    🌟 Create a digital CV: ua-cam.com/video/BXAeMICmUSQ/v-deo.html
    🌟 Download Git: git-scm.com/downloads
    🌟 Render Website: render.com/
    *GIT COMMANDS:* ⤵
    git add .
    git commit -m "Your Message"
    git remote add origin github.com/[GitHubUserName]/[RepoName].git
    git push -u origin master

  • @094_anuvabchatterjee5
    @094_anuvabchatterjee5 Рік тому

    Thank you very much for this video . I was struggling for 2 days to deploy my web app in the cloud and then I came across your video . My web app is successfully deployed. This video has been a tremendous help for me . I hope you keep making such videos . Love from India❤

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

      Thanks for watching. Happy to hear that you found the video helpful and that you successfully deployed your app :)

  • @tqdam
    @tqdam Рік тому +3

    Fantastic tutorial as always! Thank you!

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

      Happy to hear that you enjoyed this one too! Thanks for watching! :)

  • @MukeshYadav-wb5uo
    @MukeshYadav-wb5uo Рік тому +1

    it was very helpful video. I came to learn deployment in render but you also taught me git. Thank you so much and lots of love from india.

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

      Happy to hear that it was useful; thank you for taking the time to leave a comment and for watching the video!

  • @user-ee6ob5gi6d
    @user-ee6ob5gi6d Рік тому

    You're awesome. You detailed every detail of the issue.

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

      Glad you liked it. Thanks for watching and taking the time to leave a comment! 👍

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

    Thanks Sven! I created a nice digital CV through your guidance.

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

      That's super cool! Good luck with your CV! 🍀🤞

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

    Your tutorial is fantastic, thank you for sharing!

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

      Thanks for the positive feedback! Appreciate you taking the time to leave a comment. 👍

  • @arnoldtvisagie
    @arnoldtvisagie Рік тому +8

    I know you can't go through all the details. For a first-time programmer, I ran into a lot of challenges regarding cmd and some of the commands. I had to do additional research on how to solve some of these errors I faced. Overall, I learned a lot from you. I just want to say thank you for taking the time to teach us your skills.
    PS: My website is just now being built in Render, very excited to see what it looks like.

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

      Hi Arnoldt Visagie. Thanks for watching. Glad to hear that the tutorial was helpful! :)

  • @sayansarkar-xz4mg
    @sayansarkar-xz4mg 2 місяці тому

    Thank you so much sir for the valuable information sharing with us in such a neat and clean way. It helped me so much.

    • @CodingIsFun
      @CodingIsFun  Місяць тому

      Glad I could help! Thanks for watching and for the kind words. Cheers, Sven ✌️

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

    such an awesome tutorial, thank you so much, very high quality of content and very useful information!!

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

      Thanks for the positive feedback! Appreciate you taking the time to leave a comment. Cheers, Sven ✌️

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

    Thank you Sven for another amazing tutorial

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

      Happy to hear that you enjoyed this one too! Thanks for the comments and support! 👍

  • @scriptkeeper8243
    @scriptkeeper8243 2 місяці тому

    Fantastic service and the ability to add custom domains to boot! Sweet!

    • @CodingIsFun
      @CodingIsFun  2 місяці тому

      Thanks for watching! Cheers, Sven ✌️

  • @echidne
    @echidne Рік тому +4

    Very clear and understable as usual :)

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

    Really a good video, was fearing what to do? As i need to put deployed link in my resume. So thanks for it, i hope render does NOT cut free tire.

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

      Happy to hear that it was useful; thank you for taking the time to leave a comment and for watching the video!

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

    Okay why does this channel has so less subscribers? I am not being paid by this man, but I seriously suggest everyone to take a look at all his videos.

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

      Ah, you're making me blush! ♥ Thanks for the kind comment and happy to hear that you're enjoying the videos! 👍

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

      @@CodingIsFun looking forward to a new video!

  • @jahunmoayedzadeh9194
    @jahunmoayedzadeh9194 2 місяці тому

    Thank you!! I been stuck for hours

    • @CodingIsFun
      @CodingIsFun  2 місяці тому

      Glad I could help! Cheers, Sven ✌️

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

    Thank you very much! It works well and it is very easy to follow.

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

      Glad I could help! Thanks for watching and for the kind words.

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

    Wow, that is really cool!

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

      Glad to hear you liked it! Thank you for commenting and watching.

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

    Nice job 👍

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

    How do I add the streamlit secrets file to the app on render? Usually I would not have it on my GitHub since I will just add it to gitignore.

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

      Instead of the streamlit secrets file, you would use environment variables and input those into Render

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

    after deployment this error will occurring cannot import name 'Literal' from 'typing' (/usr/local/lib/python3.7/typing.py)
    how can i solve this error

    • @CodingIsFun
      @CodingIsFun  8 місяців тому

      Thanks for watching and for your question. Hard to tell from a distance why you are facing an error. Sorry that I cannot help.

  • @aeflorat
    @aeflorat 27 днів тому

    Thank you Sven! I did my website and it is up and running. Do you have a video on how to change the description of the website? The one that shows when you google it "$domain$ is your first and best source for all of the information you're looking for. From general topics to more of what you would expect to find here, .... " Or how to add keywords that make the website appear when you search for its content? Thank you!

    • @CodingIsFun
      @CodingIsFun  27 днів тому

      Thanks for tuning in! Currently, adding a meta description is not natively supported by Streamlit, at least from what I understand. You can read more about this in the following discussion: discuss.streamlit.io/t/adding-a-meta-description-to-your-streamlit-app/17847/21
      Cheers, Sven ✌️

  • @user-hz7oo4cy1x
    @user-hz7oo4cy1x Рік тому

    Thanks for this great tutorial as well.
    I unfortunately face problems with Render for the streamlit_extras library (tried with underscore and hyphen as well). any idea on that? Pandas 1.5.3 was also a problem.
    Mar 29 08:18:12 AM ERROR: Could not find a version that satisfies the requirement streamlit-extras==0.2.6 (from -r requirements.txt (line 6)) (from versions: 0.0.1)
    Mar 29 08:18:12 AM ERROR: No matching distribution found for streamlit-extras==0.2.6 (from -r requirements.txt (line 6))
    Even Heroku is not free of charge (btw: i understand that products cost money...), is it more up to date in terms of libraries? Or is there any alternative that is straightforward?
    Thanks a lot!

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

      Thanks for watching. You could try to modify your requirements.txt file as follows:
      streamlit_extras

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

    Thanks a lot for this great tutorial. I am having an issue with PDF. My streamlit app should convert a DOCX file to PDF by docx2pdf command, but Render couldn't run it because it's on Linux system. I am getting an NotImplementedError: docx2pdf is not implemented for linux as it requires Microsoft Word to be installed. I am looking for library to replace doxc2pdf. Thank you for your help.

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

      Thank you for watching the video and for your question. Unfortunately, I do not know how to implement that right off the bat. I would also need to search the internet for a solution. Sorry that I cannot help!

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

    Thanks a lot!

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

      You're very welcome! Thank you for watching and for the comment!

  • @NickoReese
    @NickoReese 8 місяців тому

    Very eloquently explained, thank you Sven. If I may ask, how can I deploy a paid (subscription-based) web app on my own website? I have a web hosting plan on Hostinger and an active domain.

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

      Thanks for watching. Glad you liked it. As far I can see, that would be only possible if you have a virutal private server on Hostinger: support.hostinger.com/en/articles/3648030-is-python-supported-at-hostinger

  • @ty7715
    @ty7715 11 місяців тому

    Hi Sven. Thanks for this tutorial.
    I’ve noticed that my deployed streamlit app on render takes an awfully long period of time to load. Most times, I refresh browser like 3 to 4 times before I see see the app. Is there a way of speeding the loading process?

    • @CodingIsFun
      @CodingIsFun  11 місяців тому

      Thanks for watching. This is mention at the 7:25 min mark. Hope that helps!

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

    Hi Sven, thanks for making this tutorial. I realize that your demo website does not fall asleep. Are you using the paid version of Render? Or is there a "ping" service like the Kaffeine of Heroku?

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

      Thanks for watching. For the demo CV I am using the free trier. Most likely, due to my tutorial on it, some people might click on the website and therefore "keeping it alive".

  • @user-kz2yi9yn2s
    @user-kz2yi9yn2s 15 днів тому

    Is it only for static websites? I have created an ML project but it's just loading and I can't see anything. What might be the reason behind this?

    • @CodingIsFun
      @CodingIsFun  15 днів тому

      Thanks for watching. No, it is not only for static websites. Regarding your error, please check the logs as shown in the video. Cheers, Sven ✌️

  • @zero-grad
    @zero-grad Рік тому

    Thanks for your effort. What advantages I got when I use other hosting than streamlit community cloud ?

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

      Thanks for watching. I explained it in the intro

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

    Thanks for the tutorial! It helped a lot! I have a question, though... it's not about information provided in the video, but about something that happened afterwards. If you could please help me understand the problem, I'd greatly appreciate it! the thing is, I put my app on Render, it got live, worked totally fine, but while I was putting all the data in the DB the message came up saying that the connection was lost. I had rebooted the site and after that all the data was gone from the DB! that's a nightmare - by that time i had put over a hundred objects in there😭😭 I REALLY don't wanna do this again and what if I do and it all just goes missing again? thank you!

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

      Thanks for watching and for your question. Hard to tell from a distance why you are facing an error. Sorry that I cannot help.

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

    Very helpful. god bless you!

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

    Do we not need to change the streamlit server port and address?
    E.g.
    python -m streamlit run app.py --server.port 8000 server.address 0.0.0.0
    ?
    Thanks!

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

      Thanks for watching. For me it worked without adjusting the server port/address

  • @viemingtan7508
    @viemingtan7508 8 місяців тому

    Dear Sven. Excellent video!
    For a Streamlit dashboard app that reads data from Excel file, how would we re-deploy on Render if there are changes or additions to Excel file?
    I know we could upload updated Excel file to GitHub. Will the changes be reflected on deployed web dashboard? Thank you

    • @CodingIsFun
      @CodingIsFun  7 місяців тому +1

      Thank you for watching. If there are any changes to the Excel file, you will need to re-upload it to your GitHub repository. In most cases, this isn't very practical. A better approach would be to use a database or, for smaller-scale projects, a Google Sheets document, as Google Sheets can be accessed via API. If you're interested in the Google Sheets option, check out my latest videos - I have demonstrated there how to connect Streamlit with Google Sheets. I hope this helps! Happy coding! :)

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

    Great tutorial. One question though, can I use a private repository instead of a public one to use Render?

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

      Thank you for the positive feedback. Yes, I believe that should be possible: docs.render.com/github. Happy deployment! Cheers, Sven ✌️

  • @sudharadhananjayaabethunga8295

    Thank you very much

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

      My pleasure. Thanks for watching. Happy Deployment! :)

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

    Fantastic 😍

  • @shifuology_yt
    @shifuology_yt 9 місяців тому

    Thank you so much!

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

      My pleasure! Appreciate you taking the time to watch and leave a comment.

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

    Thank you for the clear explanation. Can you please help us to know if we can deploy our machine learning applications through render or not?

  • @itsgamely7843
    @itsgamely7843 5 місяців тому

    love u bhai

  • @gabrielcardoso7137
    @gabrielcardoso7137 Рік тому +3

    You're awesome

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

    Hi Sven, thank you for this incredible tutorial
    I am trying to deploy a multi-webpage app
    However, i have waited like 20min and i only see the first page (homepage), i have two pages more , one with my projects and contact page
    Do we need to do something different in the process to see all pages?
    Thanks

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

      Thanks for watching.
      I took the time and tested it out for you. I followed the exact steps and it works: multipage-example.onrender.com/
      I have used this example: github.com/Sven-Bo/streamlit-multipage-app-example

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

      @@CodingIsFun Thank yo so much for your prompt response! Incredible channel.

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

      @@CodingIsFun Hi Sven, i have a question. How can i add in the second page ( portfolio) a dataframe and also plotly graphics? I tried but i have an error: "FileNotFoundError: [Errno 2] No such file or directory: " i have the file saved in the folder but it's not working :( . Thank you

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

      @@InteligenciadeNegocios Hard to tell from a distance. Sorry that I cannot help

  • @nithish816
    @nithish816 10 місяців тому

    Hi,
    I have evrything set up on guithub (including requirements.txt) and i've deployed my streamit app on streamlit cloud and was working fine till date .
    But now it suddenly throws an error that says data is not downloading from yfinance module .
    Please give solution to this issue as i have to submit my project for current academic semester. 🙏

    • @CodingIsFun
      @CodingIsFun  10 місяців тому

      Hi. Thanks for watching. Hard to tell from a distance why you are facing an issue.

    • @nithish816
      @nithish816 10 місяців тому

      @CodingIsFun Thank you for the reply,
      I cleared my entire repo re-did the process , it's working fine now😂.
      BTW your videos are very informative 😁

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

    This video very help me .. awesome

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

      Happy to hear that it was useful; thank you for taking the time to leave a comment and for watching the video! 😃

  • @eugenechua7239
    @eugenechua7239 10 місяців тому

    hey thanks for the video, do u have the github repo for this? and also can i double check is a render.yaml file also required here?

    • @CodingIsFun
      @CodingIsFun  10 місяців тому

      Thanks for watching. As mentioned in the video, here is the Streamlit project: github.com/Sven-Bo/digital-resume-template-streamlit

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

    Nice video. One question, right after the "git remote add origin ... ", I entered "git push -u origin master" but it's giving me an error: "Updates were rejected because the remote contains work that you do not have locally. This is usually caused by another repository pushing to the same ref..." Appreciate if anyone can help on this.

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

      Thanks for watching. Please try out the following solution: stackoverflow.com/a/42198976

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

      @@CodingIsFun Thanks! I think it's because when I created the remote repo in Github, I created a readme file.

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

    I already signed up on Render, but it require credit card to continue. And I dont have free plan option. I'm a bit confused here. Or is there any limitations in some country? Any clue, please?

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

      That's strange. You might want to contact the render support team

    • @irmakaleem1670
      @irmakaleem1670 5 місяців тому

      I'm facing the same problem. Have you found any solution?

  • @prachutony
    @prachutony 9 місяців тому

    Hello dude , I have a problem with this , when i try to upload i have a large file which 122mb how can i push it inside my repo

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

      You could try Git LFS (Large File Storage). Cheers, Sven!

    • @prachutony
      @prachutony 9 місяців тому

      @@CodingIsFun Hello Brother , thank you so much for your help , i have done everything ,but when i try to deploy , it is stating that it cant access my mongodb database , can you please upload a video on deploying an app connected with mongodb , please

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

    seems deploy a static Python website? How can I deploy docker to render?

  • @kakomamakondo8884
    @kakomamakondo8884 5 місяців тому

    Is there a way of adding meta description to streamlit apps??

    • @CodingIsFun
      @CodingIsFun  5 місяців тому

      Thanks for watching.
      Please check out the following discussion: discuss.streamlit.io/t/adding-a-meta-description-to-your-streamlit-app/17847/14
      I hope it helps! Cheers, Sven ✌️

  • @habibscreenprint2680
    @habibscreenprint2680 11 місяців тому

    amazing

  • @saulohenrique8415
    @saulohenrique8415 4 місяці тому

    God bless you!

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

    Sven, I've tried it all but cannot do it... tried to add the files using git, followed all the steps, but it shows a fatal error when I try to upload the files from GitHub, I've already generated the token for the authentication, but no success... trined to upload the files manually but the hidden files do not upload... really frustrating... Can you help?

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

      Thanks for watching and for your question. Hard to tell from a distance why you are facing an error. Sorry that I cannot help.

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

      @@CodingIsFun but do you know a way to load the hidden files up to GitHub on a Mac? This would solve the issue.

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

      @@Vlapstone Sorry, but I do not use Mac

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

      @@CodingIsFun no worries mate! I’ll try and do it on a windows pc then. Thanks a lot.

  • @Ron-tp7em
    @Ron-tp7em Рік тому +6

    Great video👍What's the best way to deploy a streamlit app privately, giving access only to select users?

    • @CodingIsFun
      @CodingIsFun  Рік тому +3

      Thank you! One option would be to use the "streamlit authenticator package" as shown here: ua-cam.com/video/eCbH2nPL9sU/v-deo.html
      Happy Coding!

    • @Ron-tp7em
      @Ron-tp7em Рік тому

      @@CodingIsFun Thank you so much for your quick reply. That's super helpful. Keep up the good work!

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

    your tutorials are very helpful
    i got a problem
    firstly i deployed an app it is failed because of spelling mistake in initial commit
    and next i corrected and started to deploy every step you said
    but failed again with this reason "Newer logs may be unavailable because a recent deploy failed. View recent events."
    how do i fix this please

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

      Thanks for watching. Hard to tell from a distance. Sorry that I cannot help

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

      @@CodingIsFun thank you for responding

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

    Amazing! Can you please create a tutorial for deploying to AWS or AZURE?

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

      Thank you for watching the video & your suggestion.

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

    very helpful

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

      Glad it helped! Thanks for watching! 👍

  • @31gamenation
    @31gamenation Рік тому

    Do you know how to use the St secret feature in render

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

      You want to google "Environment Variables Render"

  • @sulavadhikari8728
    @sulavadhikari8728 Рік тому +5

    Thank you, Sven for uploading this great tutorial. Fantastic explanation as always on every videos.
    I'd followed along the tutorial, Deploy live was successful however got an error while clicking on the link "No such file or directory: '/opt/render/project/src/assets/CV.pdf'. Any help would be greatly appreciated. Thanks again for sharing these contents.

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

      Thank you for the kind words.
      Regarding your issue, please ensure to use relative filepaths.
      Example:
      ✅ DO:
      from pathlib import Path
      current_dir = Path(__file__).parent if "__file__" in locals() else Path.cwd()
      CV = current_dir / "assets" / "CV.pdf"
      ⛔ DO NOT:
      CV = r"C:/UserName/project/src/assets/CV.pdf"

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

      @@CodingIsFun Thanks alot for your prompt response. Feels great to be a part of this channel.

  • @GigioZiegler
    @GigioZiegler 11 місяців тому

    Thanks!

    • @CodingIsFun
      @CodingIsFun  11 місяців тому

      My pleasure! Appreciate you taking the time to watch and leave a comment.

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

    Hello, Sven . Thank you so much for your great work.
    Can you advise us a good hosting service for streamlit app (not free), i mean to have our own domain. I hear about Heroku and hostinger, but i would like to have your opinion.

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

      Thank you for tuning in! Most premium hosting services, including Heroku and Render, which I've personally tested, enable you to link your custom domain to their DNS. Wishing you smooth and successful deployments!

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

      @@CodingIsFun thank you for the answer !

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

    I have a problem when i deploy the deep learning model in render as Falsk web application.
    i am getting the error OSError: Unable to open file (file signature not found)
    Kindly assist me.
    Jan 5 03:55:02 AM Traceback (most recent call last):
    Jan 5 03:55:02 AM File "/opt/render/project/src/.venv/lib/python3.7/site-packages/flask/app.py", line 2525, in wsgi_app
    Jan 5 03:55:02 AM response = self.full_dispatch_request()
    Jan 5 03:55:02 AM File "/opt/render/project/src/.venv/lib/python3.7/site-packages/flask/app.py", line 1822, in full_dispatch_request
    Jan 5 03:55:02 AM rv = self.handle_user_exception(e)
    Jan 5 03:55:02 AM File "/opt/render/project/src/.venv/lib/python3.7/site-packages/flask/app.py", line 1820, in full_dispatch_request
    Jan 5 03:55:02 AM rv = self.dispatch_request()
    Jan 5 03:55:02 AM File "/opt/render/project/src/.venv/lib/python3.7/site-packages/flask/app.py", line 1796, in dispatch_request
    Jan 5 03:55:02 AM return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args)
    Jan 5 03:55:02 AM File "app.py", line 36, in predictRoute
    Jan 5 03:55:02 AM result = clApp.classifier.predictiondogcat()
    Jan 5 03:55:02 AM File "/opt/render/project/src/predict.py", line 27, in predictiondogcat
    Jan 5 03:55:02 AM model = load_model('Fibrosis_ResNet19_Model.h5')
    Jan 5 03:55:02 AM File "/opt/render/project/src/.venv/lib/python3.7/site-packages/keras/utils/traceback_utils.py", line 67, in error_handler
    Jan 5 03:55:02 AM raise e.with_traceback(filtered_tb) from None
    Jan 5 03:55:02 AM File "/opt/render/project/src/.venv/lib/python3.7/site-packages/h5py/_hl/files.py", line 533, in __init__
    Jan 5 03:55:02 AM fid = make_fid(name, mode, userblock_size, fapl, fcpl, swmr=swmr)
    Jan 5 03:55:02 AM File "/opt/render/project/src/.venv/lib/python3.7/site-packages/h5py/_hl/files.py", line 226, in make_fid
    Jan 5 03:55:02 AM fid = h5f.open(name, flags, fapl=fapl)
    Jan 5 03:55:02 AM File "h5py/_objects.pyx", line 54, in h5py._objects.with_phil.wrapper
    Jan 5 03:55:02 AM File "h5py/_objects.pyx", line 55, in h5py._objects.with_phil.wrapper
    Jan 5 03:55:02 AM File "h5py/h5f.pyx", line 106, in h5py.h5f.open
    Jan 5 03:55:02 AM OSError: Unable to open file (file signature not found)

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

      Thanks for watching and for your question. Hard to tell from a distance why you are facing an error. Sorry that I cannot help.

  • @m.p.5232
    @m.p.5232 10 місяців тому

    It's not directly related to the deployment, but after you have your web app online how can you integrate it to an existing site?
    For example, on your domain pythonandvba (running Wordpress) you have also seamlessly embedded mytoolbelt.
    Can you make a video explaining how to achieve this? Thank youuu! 🙏

    • @CodingIsFun
      @CodingIsFun  10 місяців тому +1

      Thanks for watching. I'm not entirely sure I understand your request, but if you'd like to set up a custom domain on Render, here's a tutorial: render.com/docs/custom-domains. In a nutshell, you can purchase a domain, for example, from namecheap.com. Once you have the domain, you can point your Render app to it. I hope that helps!

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

    Great 👍

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

    Hi, how to add a custom domain name to my sharing streamlit app?

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

      Thanks for watching. Have a look at the following documentation: render.com/docs/custom-domains

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

      @@CodingIsFun ok thank you from morocco

  • @963seeker
    @963seeker 8 місяців тому +3

    Streamlit cloud deployments is now requiring full access to all your repos including private ones. I guess snowflake is training their models on all repos they can get access too without paying anything to the devs

  • @ronmiakanmode8335
    @ronmiakanmode8335 11 місяців тому

    Thank you, Sven, for uploading this great tutorial. I, however, got this error: ERROR:
    No matching distribution found for streamlit==1.25.0 (from -r requirements.txt (line 3)).
    how do I resolve it, please?

    • @CodingIsFun
      @CodingIsFun  11 місяців тому +1

      Thanks for watching. Edit the requirements.txt file: Replace streamlit==1.25.0 with streamlit

    • @Akhimed
      @Akhimed 11 місяців тому

      @@CodingIsFunI’m having the exact same problem but with pandas instead of streamlit, would that also fix the issue?

    • @CodingIsFun
      @CodingIsFun  11 місяців тому

      @@Akhimed same fix

    • @ronmiakanmode8335
      @ronmiakanmode8335 11 місяців тому +1

      thanks Sven. it worked. however, I got this error on the webpage after successfully deploying on render:
      ImportError: cannot import name 'Literal' from 'typing' (/usr/local/lib/python3.7/typing.py)
      any suggestions on how to fix this?

  • @informaticapowercentertuto7209

    Thank you. Very useful video. How do i deploy it to my custom domain name

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

      Thanks for watching. On render you can add custom domains as follows: render.com/docs/custom-domains
      I hope it helps!

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

    is there a way you can see how many people visited your API from GIT or Render?

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

      To the best of my knowledge, it's not possible to directly track the number of visitors to your API via Git. However, you might consider using the streamlit-analytics package to monitor usage for your Streamlit app deployed on Render. You can find it here: github.com/jrieke/streamlit-analytics. Please note that I haven't personally tested this package.

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

      @@CodingIsFun nice. Will try this. Thanks

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

    hi bro great video, but I am getting error bad gateway 502 please provide me a solution

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

      Thanks for watching and for your question. Hard to tell from a distance why you are facing an error. Sorry that I cannot help.

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

    how do i get the .streamlit file?

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

      Please watch the tutorial I mentioned in the video

  • @nathankwon3042
    @nathankwon3042 2 місяці тому

    Thanks for the awesome video! I deployed the website, and it works well on laptop. The problem is, it's not working on Mobile!! I only see white screen on the screen.. Anyone has a same problem?

    • @CodingIsFun
      @CodingIsFun  2 місяці тому

      Thanks for watching and for your question. Hard to tell from a distance why you are facing an error. Sorry that I cannot help.

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

    I'm getting this message from Render when I deploy: WARNING: You are using pip version 20.1.1; however, version 23.1.2 is available

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

      Thanks for watching. Running this command in the shell should fix the "issue"/warning: pip install --upgrade pip

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

    4:15 i had to restart my computer after installing Git. Otherwise the command git init doesnt work

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

      Thanks for watching the video and the additional hint! 👍

  • @AlphaGrudge
    @AlphaGrudge 11 місяців тому

    5:02 it says fatal unable to detect email address

    • @CodingIsFun
      @CodingIsFun  11 місяців тому

      Thanks for watching. Try the following:
      git config --global user.name "Your Name"
      git config --global user.email "youremail@example.com"

    • @AlphaGrudge
      @AlphaGrudge 11 місяців тому

      @@CodingIsFun thanks it worked now my website is up and running also do you know any free website that host your website 24/7 without sleeping

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

    Creator I'll take off the hat 🌹🌹

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

      Glad you liked it. Thanks for watching.

  • @user-sy6kz8wi1q
    @user-sy6kz8wi1q 3 місяці тому

    thanks from heartt

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

      Appreciate the love! Thanks for watching! Cheers, Sven ✌️

  • @honeyvasu1599
    @honeyvasu1599 Місяць тому

    Hi, it was an wonderfull to see this video and I'm facing a small trouble in deploying my app. I am using Streamlit cloud community to deploy app. And also I am using pyrebase but it was not working . Need your help 😢 this my Project work so please help me

    • @CodingIsFun
      @CodingIsFun  Місяць тому

      Thanks for watching and for your kind words. However, with that bit of information, I cannot help you. Cheers, Sven ✌️

    • @honeyvasu1599
      @honeyvasu1599 Місяць тому

      @@CodingIsFun Thanky you for reply, But I need your help. Can I get your mail ID I will send you Appy. Through that you can help me..please

    • @honeyvasu1599
      @honeyvasu1599 Місяць тому

      ​@@CodingIsFun Can I have your Email ID So that I can Attach My apps You so I can find solution In better way So please Help me 😢

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

    Great videos ! This does not work for me :(. The logs are ok but a get a message 'Failed'

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

      Thanks for watching and for your question. Hard to tell from a distance why you are facing an error. Sorry that I cannot help.

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

      same here...the problem is that I cannot see the issues... log file is not showing anything! don't know how to fix it

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

      @@FilippoGronchi Same answer. Not sure how I can help without any error message. I have now hosted several streamlit websites on render without any issues. You might want to contact the render support team to see the logs.

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

      I ran into the same issue, then I went to settings>Build & Deploy>Root Directory and specified the root folder, which was in my case just the root folder ".", and now it is running successfully, BTW, I tried similar steps with railway .app and it went successfully as well.

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

      @@ahmadkhaled4751 that is a very good suggestion, thanks a lot. I didn't what to fill into that field and left it empty. But I just tried entering a "." and did not work either :(

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

    I’m here from the heroku tutorial.
    I have actually been following the steps to turn my excel spreadsheet into a web app.
    The web app is supposed to automatically change when changes are made on the excel file.
    If I deploy my web app to the internet, will it still change when any change is made to the excel file on my local machine?
    Do I have to do git push anytime I make a change to the excel file? If yes, can that be automated?
    I would really appreciate your response.

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

      Thanks for your comment! Changes to your Excel file will not automatically update the web app on the server. If you deploy your web app to the internet, it will only update when changes are made to the Excel file on the server, not on your local machine. Alternatively, you may want to consider using Google Sheets, which can act as a cloud-based database and automatically update changes made to the data.

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

      @@CodingIsFun I was able to achieve it with google sheets. Thank you

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

    Hi Sven, can you please help us creating a tutorial to deploy an application web for free on render but uploading a dataframe and also using pyplot and streamlit? Will be very helpful
    Thank you

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

      Thanks for watching. Can you please explain why the deployment process differs from the one I have shown in the video? Thanks!

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

      @@CodingIsFun yes, i have tried to deploy a dataframe in render without success. I followed all the steps but it seems like render cannot deploy dataframes or pyplot. when i deploy the dataframes and the pyplot graphics in my localhost everything works fine, but in render never deploy the app.

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

      @@InteligenciadeNegocios Please check the logs for errors

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

      @@CodingIsFun I also experienced this. There are no errors on the logs. The log reflects "You can now view your Streamlit app in your browser." but somehow the deployment it still fails.
      Fixed it by removing all the codes related to matplotlib

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

      @@graceestrada9822 I have tried to recreate the same issue.
      ISSUE:
      The logs do not show any error message, but the deployment was unsuccessful.
      SOLUTION:
      In my case, I have fixed it by using the same Python version in which I developed the app.
      You can specify the Python version as follows:
      render.com/docs/python-version
      snipboard.io/w8uGXy.jpg
      I hope it helps! Happy Deployment! 🎉

  • @122rmcontroller7
    @122rmcontroller7 Рік тому

    Show!!!

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

    not free add card :(

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

      Nope, it is free: render.com/docs/free

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

    bro now render asked for add card.

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

      bro what should I do about it? They still have a free tier

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

      @@CodingIsFun as i have made account on it, and clicked on web service it asked me to add card.

  • @123arskas
    @123arskas Рік тому

    Man you're beautiful. Awesome content

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

      Happy to hear that it was useful; thank you for taking the time to leave a comment and for watching the video!

  • @patriciohernandezballester2485

    Great! I love it! 🍌🌴♥

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

    ImportError: cannot import name 'Literal' from 'typing' (/usr/local/lib/python3.7/typing.py)
    Traceback:
    File "/opt/render/project/src/.venv/lib/python3.7/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 552, in _run_script
    exec(code, module.__dict__)
    File "/opt/render/project/src/app.py", line 4, in
    from streamlit_lottie import st_lottie
    File "/opt/render/project/src/.venv/lib/python3.7/site-packages/streamlit_lottie/__init__.py", line 10, in
    from typing import Union, Optional, Literal
    help me solve this error

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

      Thanks for watching. Literal class was added in Python 3.8. By default, Render uses the latest patch version of Python 3.7. That is why you are receiving an error.
      You can customize the Python version for your app in Render by setting the PYTHON_VERSION environment variable to a valid Python version, for example 3.8.2. Supported Python versions are those after 3.7.0: render.com/docs/python-version

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

      @@CodingIsFun Thank you so much

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

    Thank you for this video !
    Unfortunately, Render seems not to support the "streamlit extra" library🥲.
    RIP the Dataframe explorer UI !
    Any way, BIG UP !
    But beside this could, which could you advise for beginner in data analysis (something around 30/40$ max per year) ?

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

      Hmm, that is strange. Render should support 'streamlit-extras'. Ensure to include it in the requirements.txt file.

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

      @@CodingIsFun Ok i would maybe write streamlit_extras

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

      @@ordaflash I do not know what kind of error message you are facing, but it should be "streamlit-extras" (not with an underscore)

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

      @@CodingIsFun oh, thank you for your answers !!
      Here is the error code that I get in the deployment process on Render :
      ERROR: Could not find a version that satisfies the requirement streamlit_extras==0.2.4 (from -r requirements.txt (line 5)) (from versions: 0.0.1)
      Notes :
      1) I got the same for pandas at first, and i used the "

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

      @@ordaflash keep the underscore in your Python script, but use streamlit-extras in your requirements.txt

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

    Can I have some help? When I start to deploy it, after 10 or so minuets it keeps failing… can u help?

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

      Thanks for watching and for your question. Hard to tell from a distance why you are facing an error. Sorry that I cannot help.