import streamlit as st from streamlit.components.v1 import html from datetime import datetime, timedelta # Custom function to display HTML content with Streamlit's components.v1.html() def local_storage_button(): button_html = """ """ html(button_html) # Use the custom function to display the button local_storage_button() # Display the counter st.markdown("
", unsafe_allow_html=True)