wozwize's picture
initial commit of media-unmasked-api to huggingface
876b12f
raw
history blame contribute delete
306 Bytes
import logging
from typing import Optional
def setup_logging(level: int = logging.INFO) -> None:
"""Configure logging for the application."""
logging.basicConfig(
level=level,
format='%(asctime)s - %(name)s - %(levelname)s - %(message)s',
datefmt='%Y-%m-%d %H:%M:%S'
)