Spaces:
Runtime error
Runtime error
#!/usr/bin/env python | |
import logging | |
import sys | |
from pathlib import Path | |
import click | |
from IPython.core import ultratb | |
import crazyneuraluser | |
# fallback to debugger on error | |
sys.excepthook = ultratb.FormattedTB(mode="Verbose", color_scheme="Linux", call_pdb=1) | |
# turn UserWarning messages to errors to find the actual cause | |
# import warnings | |
# warnings.simplefilter("error") | |
_logger = logging.getLogger(__name__) | |
def main(cfg_path: Path, log_level: int): | |
logging.basicConfig( | |
stream=sys.stdout, | |
level=log_level, | |
datefmt="%Y-%m-%d %H:%M", | |
format="%(asctime)s - %(name)s - %(levelname)s - %(message)s", | |
) | |
# YOUR CODE GOES HERE! Keep the main functionality in src/crazyneuraluser | |
# est = crazyneuraluser.models.Estimator() | |
if __name__ == "__main__": | |
main() | |