From 0a37d36bbd5078c4f2327b3e9dac6726011a5c2d Mon Sep 17 00:00:00 2001 From: chris Date: Fri, 27 Feb 2026 16:21:58 -0500 Subject: [PATCH] Add envrc for automatic installation --- .envrc | 1 + tlm/cli.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 .envrc diff --git a/.envrc b/.envrc new file mode 100644 index 0000000..8624131 --- /dev/null +++ b/.envrc @@ -0,0 +1 @@ +source .venv/bin/activate diff --git a/tlm/cli.py b/tlm/cli.py index 3733b4e..a6006c0 100644 --- a/tlm/cli.py +++ b/tlm/cli.py @@ -51,7 +51,7 @@ def generate(length, context_window_words, filepath, gutenberg, list_gutenberg, corpus.extend(tokenize_text(mail_text, tokenize_opts)) if not corpus: - raise click.UsageError("Must specify at least one of --text, --gutenberg, or --mbox for training data.") + raise click.UsageError("No training data provided. Must specify at least one of --filepath, --gutenberg, or --mbox.") # Train and generate model = TinyLanguageModel(n=context_window_words)