lfoppiano / document-qa

Scientific Document Insight Q/A
https://lfoppiano-document-qa.hf.space/
Apache License 2.0
23 stars 4 forks source link

Streamlit-pdf-viewer Component Interfering with Chat History Auto-Scroll Functionality #24

Open t29mato opened 10 months ago

t29mato commented 10 months ago

Description

I've encountered an issue when implementing the streamlit-pdf-viewer component in the document-qa application. It appears that the auto-scroll functionality of the chat history, which normally brings the view to the bottom of the chat when a user gets an answer from generative AI, stops working.

Potential Cause and Solution

I suspect this might be related to the current limitation of the st.chat_input widget, which cannot be used inside st.columns. If st.chat_input were adaptable for use within st.columns, this might resolve the issue.

Relevant Information

According to a recent comment on issue #7296 in the Streamlit repository, there is a planned implementation to solve this problem within the next three months.

Current Approach

For now, the strategy is to wait for updates or fixes to the Streamlit library.