I first built ASTRA on Streamlit. It worked locally, but once deployed, it kept sleeping. Every time someone opened the link after a while, it would show a sleeping screen and take forever to wake up. I realized a space design app can’t sleep when the user needs it, so I fixed it by rebuilding the entire app in Flask and deploying it through GitHub.Then when I tried to run Flask locally, I hit another wall - jinja2.exceptions.TemplateSyntaxError. Jinja couldn’t recognize my HTML syntax because I had used : inside {{ }} for my icons. I fixed that by moving the logic out of Jinja and into a clean JavaScript function.So I fixed two big things - I stopped the sleeping problem by leaving Streamlit for Flask, and I fixed the Jinja syntax clash that was breaking my localhost. I really hope this will work!!!.
Comments 0
No comments yet. Be the first!
Sign in to join the conversation.