Deploy Your Streamlit App To Render (Free Heroku Alternative)

Поделиться
HTML-код
  • Опубликовано: 27 июл 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

Комментарии • 230

  • @CodingIsFun
    @CodingIsFun  Год назад +9

    *Happy Deployment!* 🚀
    *LINKS:* ⤵
    🌟 Create a digital CV: ruclips.net/video/BXAeMICmUSQ/видео.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

  • @tqdam
    @tqdam Год назад +3

    Fantastic tutorial as always! Thank you!

    • @CodingIsFun
      @CodingIsFun  Год назад

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

  • @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 :)

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

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

  • @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! 🍀🤞

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

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

  • @echidne
    @echidne Год назад +4

    Very clear and understable as usual :)

  • @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  2 месяца назад

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

  • @scriptkeeper8243
    @scriptkeeper8243 2 месяца назад

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

    • @CodingIsFun
      @CodingIsFun  2 месяца назад

      Thanks for watching! 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.

  • @jahunmoayedzadeh9194
    @jahunmoayedzadeh9194 2 месяца назад

    Thank you!! I been stuck for hours

    • @CodingIsFun
      @CodingIsFun  2 месяца назад

      Glad I could help! Cheers, Sven ✌️

  • @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! :)

  • @armantech5926
    @armantech5926 Год назад

    Wow, that is really cool!

    • @CodingIsFun
      @CodingIsFun  Год назад +1

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

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

  • @reversanonymous3232
    @reversanonymous3232 Год назад +1

    Nice job 👍

  • @mohamedlahrech178
    @mohamedlahrech178 Год назад

    Very helpful. god bless you!

  • @selim3291
    @selim3291 Год назад +1

    Thanks a lot!

    • @CodingIsFun
      @CodingIsFun  Год назад +1

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

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

  • @gabrielcardoso7137
    @gabrielcardoso7137 Год назад +3

    You're awesome

  • @abhishek_illusion
    @abhishek_illusion Год назад

    Fantastic 😍

  • @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! 😃

  • @sudharadhananjayaabethunga8295

    Thank you very much

    • @CodingIsFun
      @CodingIsFun  Год назад

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

  • @itsgamely7843
    @itsgamely7843 5 месяцев назад

    love u bhai

  • @GigioZiegler
    @GigioZiegler 11 месяцев назад

    Thanks!

    • @CodingIsFun
      @CodingIsFun  11 месяцев назад

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

  • @jasaamanah6171
    @jasaamanah6171 Год назад

    very helpful

    • @CodingIsFun
      @CodingIsFun  Год назад

      Glad it helped! Thanks for watching! 👍

  • @xolanijozi8375
    @xolanijozi8375 Год назад

    Great 👍

  • @saulohenrique8415
    @saulohenrique8415 5 месяцев назад

    God bless you!

  • @habibscreenprint2680
    @habibscreenprint2680 11 месяцев назад

    amazing

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

  • @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: ruclips.net/video/eCbH2nPL9sU/видео.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!

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

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

  • @ffhg2354
    @ffhg2354 Год назад +1

    Creator I'll take off the hat 🌹🌹

    • @CodingIsFun
      @CodingIsFun  Год назад

      Glad you liked it. Thanks for watching.

  • @PassportPair
    @PassportPair 4 месяца назад

    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 ✌️

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

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

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

  • @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  8 месяцев назад

      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

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

  • @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  8 месяцев назад +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! :)

  • @user-sy6kz8wi1q
    @user-sy6kz8wi1q 4 месяца назад

    thanks from heartt

    • @CodingIsFun
      @CodingIsFun  3 месяца назад

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

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

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

  • @aeflorat
    @aeflorat Месяц назад

    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  Месяц назад

      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 ✌️

  • @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  9 месяцев назад

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

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

  • @122rmcontroller7
    @122rmcontroller7 Год назад

    Show!!!

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

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

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

  • @patriciohernandezballester2485
    @patriciohernandezballester2485 Год назад +1

    Great! I love it! 🍌🌴♥

  • @user-kz2yi9yn2s
    @user-kz2yi9yn2s 21 день назад

    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  21 день назад

      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 ✌️

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

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

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

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

  • @m.p.5232
    @m.p.5232 11 месяцев назад

    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  11 месяцев назад +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!

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

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

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

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

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

  • @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 ✌️

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

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

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

  • @gowithme2332
    @gowithme2332 Год назад

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

  • @31gamenation
    @31gamenation Год назад

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

    • @CodingIsFun
      @CodingIsFun  Год назад

      You want to google "Environment Variables Render"

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

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

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

  • @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 :(

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

  • @honeyvasu1599
    @honeyvasu1599 2 месяца назад

    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  2 месяца назад

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

    • @honeyvasu1599
      @honeyvasu1599 2 месяца назад

      @@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 2 месяца назад

      ​@@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 😢

  • @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! 🎉

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

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

  • @erlanggaard
    @erlanggaard Год назад

    how do i get the .streamlit file?

    • @CodingIsFun
      @CodingIsFun  Год назад

      Please watch the tutorial I mentioned in the video

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

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