Spaces:
Sleeping
Sleeping
|
Download docs/md/design/modeling/cli_predict.md from thanhnv2323/humanize-text-python: direct link, hf CLI and curl.
- Browser
- Download file 530 Bytes
-
https://huggingface.co/spaces/thanhnv2323/humanize-text-python/resolve/main/docs/md/design/modeling/cli_predict.md
- Command line
-
hf download hf://spaces/thanhnv2323/humanize-text-python/docs/md/design/modeling/cli_predict.md
-
curl -L -o cli_predict.md https://huggingface.co/spaces/thanhnv2323/humanize-text-python/resolve/main/docs/md/design/modeling/cli_predict.md
530 Bytes
| # Modeling: CLI `predict` | |
| **Code**: `adsp/modeling/predict.py` | |
| ## Purpose | |
| CLI utility to run persona inference from a prompt file using `PersonaInferenceEngine`. | |
| ## Usage | |
| ```bash | |
| python -m adsp.modeling.predict --persona-id default --prompt-path prompt.txt | |
| ``` | |
| ## Interface | |
| Arguments: | |
| - `persona_id` (default `"default"`) | |
| - `prompt_path` (default `prompt.txt`) | |
| - `model_dir` (default `models/` via `adsp.config.MODELS_DIR`; currently unused placeholder) | |
| ## Key dependencies / technologies | |
| - `typer` CLI | |
| - `pathlib.Path` | |