vancauwe's picture
feat: sync github with huggingface
f8bf7d4
raw
history blame
498 Bytes
import logging
logger = logging.getLogger(__name__)
logger.setLevel(logging.DEBUG)
import time
import streamlit as st
def run(*args, **kwargs):
# unpack the duration from the kwargs
duration = kwargs.get('duration', 0.2)
logger.info("πŸƒ Running task ")
time.sleep(.2)
logger.info("πŸ₯΅ Still running task")
time.sleep(0.1)
logger.warning("⚠️ Task is taking longer than expected")
#time.sleep(0.2)
time.sleep(duration)
logger.info("βœ… Finished task")