INNER CODE UNIT · Python

main

candle-org/mindnlp · src/mindact/cli/main.py:98

def main(argv: Sequence[str] | None = None) -> int:
    """Run the MindAct CLI and return a process exit code."""
    parser = build_parser()
    args = parser.parse_args(argv)
    if args.command == "config-check":
        try:
            config = ExperimentConfig.from_yaml(args.path)
        except ConfigError as exc:
            parser.error(str(exc))
        print(f"valid: {config.name}")
        return 0

    if args.command == "doctor":
        print(run_doctor().render())
        return 0

    if args.command == "manifest" and args.manifest_command == "show":
        try:

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…