Spaces:
Runtime error
Runtime error
Update app.py
Browse files12 unmodified lines1314151617181978 unmodified lines989910010110210312 unmodified linesimport foliumimport country_converter as cocoimport timefrom tqdm import tqdmcurrent_dir = os.path.dirname(os.path.abspath(__file__))78 unmodified lineslayout="wide")@st.cache_resourcedef load_models():"""Load and cache the models to prevent reloading"""12 unmodified lines13141516171878 unmodified lines97989910010110210310410510610710810911012 unmodified linesimport foliumimport country_converter as cocoimport timecurrent_dir = os.path.dirname(os.path.abspath(__file__))78 unmodified lineslayout="wide")timer_placeholder = st.sidebar.empty()start_time = time.time()while True:elapsed = int(time.time() - start_time)timer_placeholder.markdown(f"⏱️ Time Elapsed: {elapsed} seconds")time.sleep(1)@st.cache_resourcedef load_models():"""Load and cache the models to prevent reloading"""
app.py+8-1