Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
t29mato opened this issue Dec 5, 2023 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@t29mato
Copy link
Collaborator

t29mato commented Dec 5, 2023

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.

@t29mato t29mato added the enhancement New feature or request label Dec 5, 2023
@t29mato t29mato self-assigned this Dec 5, 2023
@t29mato t29mato changed the title Issue with streamlit-pdf-viewer Component Interfering with Chat History Auto-Scroll Functionality Streamlit-pdf-viewer Component Interfering with Chat History Auto-Scroll Functionality Feb 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant