Spaces:
Sleeping
Sleeping
File size: 643 Bytes
09da05c | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 | """CLI for running persona inference stub."""
from pathlib import Path
import typer
from adsp.config import MODELS_DIR
from adsp.modeling.inference import PersonaInferenceEngine
app = typer.Typer()
@app.command()
def main(
persona_id: str = "default",
prompt_path: Path = Path("prompt.txt"),
model_dir: Path = MODELS_DIR,
):
_ = model_dir # Placeholder until a real loader is implemented
engine = PersonaInferenceEngine()
prompt = prompt_path.read_text(encoding="utf-8") if prompt_path.exists() else ""
typer.echo(engine.generate(persona_id=persona_id, prompt=prompt))
if __name__ == "__main__":
app()
|