kambris commited on
Commit
693e6e6
·
verified ·
1 Parent(s): 4a3aee9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -1
app.py CHANGED
@@ -13,7 +13,6 @@ import pkg_resources
13
  import folium
14
  import country_converter as coco
15
  import time
16
- from tqdm import tqdm
17
 
18
 
19
  current_dir = os.path.dirname(os.path.abspath(__file__))
@@ -98,6 +97,14 @@ st.set_page_config(
98
  layout="wide"
99
  )
100
 
 
 
 
 
 
 
 
 
101
  @st.cache_resource
102
  def load_models():
103
  """Load and cache the models to prevent reloading"""
 
13
  import folium
14
  import country_converter as coco
15
  import time
 
16
 
17
 
18
  current_dir = os.path.dirname(os.path.abspath(__file__))
 
97
  layout="wide"
98
  )
99
 
100
+ timer_placeholder = st.sidebar.empty()
101
+ start_time = time.time()
102
+
103
+ while True:
104
+ elapsed = int(time.time() - start_time)
105
+ timer_placeholder.markdown(f"⏱️ Time Elapsed: {elapsed} seconds")
106
+ time.sleep(1)
107
+
108
  @st.cache_resource
109
  def load_models():
110
  """Load and cache the models to prevent reloading"""