Skip to content

Commit

Permalink
Update streamlit_app.py
Browse files Browse the repository at this point in the history
  • Loading branch information
luis-ponce authored Feb 21, 2024
1 parent 9b3a4ae commit 27d2add
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions streamlit_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -190,10 +190,12 @@ def click_button1():
# st.dataframe(st.session_state.std_information)
st.session_state.button1 = not st.session_state.button1

st.button('Click here to display your standards concentration table ', on_click=click_button1)
btn = st.button('Click here to display your standards concentration table ', on_click=click_button1)
if st.session_state.button1:
# The message and nested widget will remain on the page
st.dataframe(st.session_state.std_information)
st.dataframe(st.session_state.std_information, hide_index = True)
if btn:
btn.text = 'Click here to hide your standards concentration table '

# else:
# # st.write(st.session_state.std_information)
Expand Down

0 comments on commit 27d2add

Please sign in to comment.