File tree Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Original file line number Diff line number Diff line change 66import dotenv
77from grobid_quantities .quantities import QuantitiesAPI
88from langchain .memory import ConversationBufferWindowMemory
9- # from langchain_community.callbacks import PromptLayerCallbackHandler
109from langchain_community .chat_models import ChatOpenAI
1110from langchain_community .llms .huggingface_endpoint import HuggingFaceEndpoint
1211from langchain_huggingface import HuggingFaceEmbeddings
@@ -499,7 +498,7 @@ def generate_color_gradient(num_elements):
499498 pdf_viewer (
500499 input = st .session_state ['binary' ],
501500 annotation_outline_size = 2 ,
502- annotations = st .session_state ['annotations' ],
501+ annotations = st .session_state ['annotations' ] if st . session_state [ 'annotations' ] else [] ,
503502 render_text = True ,
504503 scroll_to_annotation = 1 if (st .session_state ['annotations' ] and st .session_state ['scroll_to_first_annotation' ]) else None
505504 )
You can’t perform that action at this time.
0 commit comments