def cli(ctx): """Weights & Biases. Run "wandb docs" for full documentation. """ wandb.try_to_set_up_global_logging() if ctx.invoked_subcommand is None: click.echo(ctx.get_help())
def main(): wandb.try_to_set_up_global_logging() args = json.loads(sys.argv[1]) command = args['command'] if command == 'headless': headless(args) elif command == 'agent-run': agent_run(args) else: assert False