Hugging Face
Models
Datasets
Spaces
Posts
Docs
Enterprise
Pricing
Log In
Sign Up
Spaces:
awacke1
/
StreamlitTimerTest
like
4
Sleeping
App
Files
Files
Community
Fetching metadata from the HF Docker repository...
ef3d923
StreamlitTimerTest
/
app.py
awacke1
Create new file
ef3d923
over 2 years ago
raw
Copy download link
history
blame
Safe
Wrap lines
207 Bytes
import
streamlit
as
st
import
time
st.set_page_config()
ph = st.empty()
N =
5
*
60
for
secs
in
range
(N,
0
,-
1
):
mm, ss = secs//
60
, secs%
60
ph.metric(
"Countdown"
,
f"
{mm:02d}
:
{ss:02d}
"
)
time.sleep(
1
)