Friends, this is my first post and I need your help please .
Basically, I already have a fully functional app for what I need it for, however, there is a small change I need to make to one of the functions to improve the app. Itās just adding a button, but when I add that to my master code (thatās what I call my base code that does work) then when I deploy the app in Streamlit I only get a blank screen (I attach a screenshot)
That blank space on the right side is the error Iām referring to. It happens EVERY time I try to add code to my master code. Even the smallest line of code causes that. Sure, then I simply go back to my master code and everything runs as it should. But I canāt add the new function I need.
Iāve even asked GPT to review my code and I still donāt understand what the error is. Streamlit doesnāt give me an error message like when it comes to the code, only the screen goes blank, and although I can navigate to the other sections of my app nothing is shown at all, just the blank screen.
The problem is this: I have the master code of my app, when I deploy THAT code the app works perfectly. To show you the problem, before sharing the repo with you, I deployed the new code (the one with the new functions I want to add) and it results in a blank screen.
Now, I redeployed the app, and if you log in with the credentials (which you can find inside the code) you will be able to see the app with all the functionalities.
The error itself, and why I am here asking for help, is because I cannot understand why when I try to add some new functionality to the master code, whatever it may be, even if it is just a line of code, when I deploy it it gives me that error of the blank screen.
If you enter the repo now and try to deploy the app, you will see that it works as it should.
I deployed your updated code and I logged in with āSgomezā, āA1B2C3D4ā. A message āHas iniciado sesiĆ³n correctamente.ā appeared in the sidebar, but nothing outside it.
Yes, you were absolutely right mate. The problem had to do with the indentation, and even though I asked GPT to verify that the indentation was correct, it kept getting it wrong. Since my knowledge of programming is zero, I couldnāt realize the indentation problem.
An apology, and thank you very much for your help friend. I really appreciate it!
Thanks for stopping by! We use cookies to help us understand how you interact with our website.
By clicking āAccept allā, you consent to our use of cookies. For more information, please see our privacy policy.
Cookie settings
Strictly necessary cookies
These cookies are necessary for the website to function and cannot be switched off. They are usually only set in response to actions made by you which amount to a request for services, such as setting your privacy preferences, logging in or filling in forms.
Performance cookies
These cookies allow us to count visits and traffic sources so we can measure and improve the performance of our site. They help us understand how visitors move around the site and which pages are most frequently visited.
Functional cookies
These cookies are used to record your choices and settings, maintain your preferences over time and recognize you when you return to our website. These cookies help us to personalize our content for you and remember your preferences.
Targeting cookies
These cookies may be deployed to our site by our advertising partners to build a profile of your interest and provide you with content that is relevant to you, including showing you relevant ads on other websites.