Stop button displaying true/false underneath



I’ve created a button to run a function when it’s clicked. The functionality works as expected but is there a way to stop it displaying True/False underneath the button before and after it’s clicked?


Steps to reproduce

Code snippet:

run_comparison = st.button("Run Comparison")


if run_comparison:
    output_df = compare_file(current_month_df,previous_month_df)

If applicable, please provide the steps we should take to reproduce the error or specified behavior.

Expected behavior:

Do not display True/False underneath button

Actual behavior:

Does display True/False

This is showing the button output:

If you don’t want to show the bottom output, remove that line.

1 Like

Thanks! That’s fixed it. Appreciated.

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.