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
Make st.chat_input
show up at the bottom even if used in a tab
#8564
Comments
st.chat_input
show up at the bottom even if used in a tab
Hey! That's expected behavior. If you're using the chat input in a container (e.g. We will soon add a Right now the only ways to work around this are:
tab1, tab2 = st.tabs(["Dashboard", "Chat"])
prompt = st.chat_input(...)
with tab1:
...
with tab2:
...
tab1, tab2 = st.tabs(["Dashboard", "Chat"])
with tab1:
...
with tab2:
...
chat_container = st.container(height=300)
prompt = st.chat_input("What is up?")
...
# and replace every `st.chat_message` call with `chat_container.chat_message`
# so the chat messages show up in the container
|
@jrieke |
Checklist
Summary
The code shown in https://docs.streamlit.io/develop/tutorials/llms/build-conversational-apps
will not work when we use
st.tabs
to use a tab to host chat ui.The st.chat_input goes to top instead bottom.
Reproducible Code Example
Steps To Reproduce
Just run this
Expected Behavior
No response
Current Behavior
No response
Is this a regression?
Debug info
Additional Information
No response
The text was updated successfully, but these errors were encountered: