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

Steamlit Text Box Covered by "Select RAG mode" #144

Open
jordanallenlewis opened this issue Mar 21, 2024 · 4 comments
Open

Steamlit Text Box Covered by "Select RAG mode" #144

jordanallenlewis opened this issue Mar 21, 2024 · 4 comments

Comments

@jordanallenlewis
Copy link

I just recently started exploring this project and I'm wondering if others have experienced the same issue as me:

On the support bot streamlit front end, the bottom text box where you type in your prompt is mostly covered by the RAG question. Anyone else experiencing this?

image

@sopheck
Copy link

sopheck commented Mar 21, 2024

✋ Same here. I haven't used Docker GenAI for a while but I remember it showing up correctly at first.

grafik

@anirbanbasu
Copy link

Screenshot 2024-04-25 at 8 55 08

Same for me!

@llmscope
Copy link

Exactly the same for me — runing in ubuntu 22.04, tried both local firefox browser or NAT another chrome browser.

@hsiehgeoVA
Copy link

Ran into the same issue. Worked around the problem by giving the fixed position to the chatbox, instead of the "Select RAG mode" pane. This is done by modifying the CSS style for Streamlit UI in bot.py file: 1) commenting out the "position: fixed" line for the '.element-container:has(aria-lable="Select RAG mode"' element, and 2) adding "position: fixed" line for the '.stChatFloatingInputContainer' element.

With these changes, the chatbox takes a fixed position at the bottom of the page, while the "Select RAG mode" pane becomes a floating element. So, the chatbox is no longer covered by the "Select RAG mode". This workaround allowed me to continue with the demo app successfully.

--- Streamlit UI style sheet modification in bot.py file ---

Streamlit UI

styl = f"""

<style> /* not great support for :has yet (hello FireFox), but using it for now */ .element-container:has([aria-label="Select RAG mode"]) {{ # position: fixed; # Commented out line bottom: 33px; background: white; z-index: 101; }} .stChatFloatingInputContainer {{ bottom: 20px; position: fixed; # Added line }} ,,,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants