From 3ddd71af8651570834f2b024173e90d51c8b28b5 Mon Sep 17 00:00:00 2001 From: Luca Foppiano Date: Thu, 15 Feb 2024 15:14:49 +0900 Subject: [PATCH] fix annotations not being filtered --- streamlit_app.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/streamlit_app.py b/streamlit_app.py index 975f180..73a7661 100644 --- a/streamlit_app.py +++ b/streamlit_app.py @@ -188,10 +188,10 @@ def get_file_hash(fname): if not highlight_affiliations: annotations = list(filter(lambda a: a['type'] != '', st.session_state['annotations'])) - component = pdf_viewer( + pdf_viewer( input=st.session_state['binary'], width=700, - annotations=st.session_state['annotations'], + annotations=annotations, pages_vertical_spacing=pages_vertical_spacing, annotation_outline_size=annotation_thickness, pages_to_render=st.session_state['page_selection'],