Spaces:
Sleeping
Sleeping
Create new file
Browse files
app.py
ADDED
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import streamlit as st
|
2 |
+
import time
|
3 |
+
|
4 |
+
st.set_page_config()
|
5 |
+
|
6 |
+
ph = st.empty()
|
7 |
+
N = 5*60
|
8 |
+
for secs in range(N,0,-1):
|
9 |
+
mm, ss = secs//60, secs%60
|
10 |
+
ph.metric("Countdown", f"{mm:02d}:{ss:02d}")
|
11 |
+
time.sleep(1)
|