Created
July 6, 2020 10:44
-
-
Save danlester/531523cbff43144d6a5d5a5e292d9394 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import streamlit as st | |
@st.cache | |
def get_start_time(): | |
from datetime import datetime | |
return datetime.now() | |
start_time = get_start_time() | |
st.write(start_time) | |
count = 0 | |
if st.button('Increment'): | |
count += 1 | |
st.write('Clicked! Start Time {}; Count {}'.format(start_time, count)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment