I am running code locally. The code is here:
I’m using python 3.10
What I expect:
I upload a pdf document, could be one page, could be multipage, although the problem exists for multipage.
I have two columns. In col1 I want to have one image. At first it would be the first page of the document and I want to be able to use st.number_input to navigate to particular page of that document and I want the chosen page to REPLACE the first one.
In col2 I have three tabs and in the 2nd and 3rd one I want to show images exactly the same way as in column 1, but after clicking a button “visualize”
What is happening instead:
after uploading pdf and choosing multipage option, the first page shows up in col1 - that’s fine. But when I click “+” in number_input widget, the second page replaces the first page for about a millisecond, to then later show up under both columns, and the first page shows up again in col1. When I click “-” the second page disappears and only the first page is showing, so technically it’s ok.
In col2 in tab2, after clicking “visualize” the first page shows up, I click “+”, the second page replaces the first one, and that would be perfect BUT the widget disappears.
I will be grateful for suggestions what I am doing wrong.