ALYYAN's picture
improvements added
80019a3
raw
history blame contribute delete
385 Bytes
import sys
import logging
# We will log directly to the console (stdout), which Hugging Face captures.
logging_str = "[%(asctime)s: %(levelname)s: %(module)s: %(message)s]"
logging.basicConfig(
level=logging.INFO,
format=logging_str,
handlers=[
logging.StreamHandler(sys.stdout) # Only log to the console
]
)
logger = logging.getLogger("cnnClassifierLogger")