I am a new streamlit lover. Just joined this community and I look forward to interact with everyone. I would appreciate if anyone could help me with the following issue:
My app gets stuck in and endless refresh loop right after I upload a pdf using the file uploader widget in the sidebar. sometime the refresh ends after 5 iterations. sometimes 10. sometimes 100. It is really random when it ends. sometimes it doesn’t refresh at all and works like a charm.
My app is simple. I upload a pdf file. The app finds the relevant pages. The user then selects the page they like. The app converts that page into a canvas. The user then draws a rectangle around the relevant tables existing on that page. The code then extracts the information from that table and uploads it to a sql database.
I will definitely share my code if that is required to find the root cause of this.
Can you post a link to the code that demonstrates this behavior? Without seeing how you’re actually implementing this, it’s hard to suggest what might be wrong.
@randyzwitch Thanks Randy for getting back to me. Here is the link to the github repository. The main file is the app.py. you can try it on the file found in the data folder to see the issue.
please let me know if there is anything else I should provide.
Can you try to create a minimum sufficient implementation of this that shows the issue and doesn’t need to store the table to Azure. This will cut down the requirements.txt a lot and make it easier to reproduce locally.
P.S. You appear to have account info in one of your files, which I don’t want to touch either.
@asehmi Sure. Those account info were all dummy btw. But ok let me do that. Do you want me to share a deployed link? Or just shorten the scripts and cut out unnecessary pieces for yourself to run on your own?
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.