Spaces:
Sleeping
Sleeping
File size: 385 Bytes
d576da9 80019a3 d576da9 80019a3 d576da9 80019a3 d576da9 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
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") |