Update app.py
Browse files35 unmodified lines36373835 unmodified linesst.toast("You have a new reminder")35 unmodified lines363738394041424344454647484950515253545556575859606135 unmodified linesst.toast("You have a new reminder")import timedef get_user_input():reminder_message = st.text_input("Enter reminder message:")reminder_time = st.time_input("Enter reminder time:")return reminder_message, reminder_timedef show_toast_message(reminder_message, reminder_time):# Calculate the time difference between the current time and the reminder time.time_diff = reminder_time - time.localtime()# If the time difference is less than or equal to 0, then show the toast message.if time_diff <= 0:st.toast(reminder_message, icon="ℹ️")# Get the user input.reminder_message, reminder_time = get_user_input()# Show the toast message at the specified time.show_toast_message(reminder_message, reminder_time)
app.py+23