WeClone: One-stop solution for creating digital avatars from chat history
(ctx, config_path)
| 81 | ) |
| 82 | @click.pass_context |
| 83 | def cli(ctx, config_path): |
| 84 | """WeClone: One-stop solution for creating digital avatars from chat history""" |
| 85 | # Only show community info when no subcommand is invoked |
| 86 | if ctx.invoked_subcommand is None: |
| 87 | show_community_info() |
| 88 | click.echo(ctx.get_help()) |
| 89 | return |
| 90 | |
| 91 | if config_path: |
| 92 | os.environ["WECLONE_CONFIG_PATH"] = config_path |
| 93 | logger.info(f"Config file path set to: {config_path}") |
| 94 | |
| 95 | _check_project_root() |
| 96 | _check_versions() |
| 97 | global cli_config |
| 98 | cli_config = cast(CliArgs, load_config(arg_type="cli_args")) |
| 99 | |
| 100 | configure_log_level_from_config() |
| 101 | |
| 102 | |
| 103 | @cli.command("make-dataset", help="Process chat history CSV files to generate Q&A pair datasets.") |
no test coverage detected