Spaces:
Runtime error
Runtime error
| import typer | |
| from rich import print | |
| from .chat import chat as chat_plugin | |
| app = typer.Typer(help="RepoSage Synth CLI") | |
| def hello(name: str = "world"): | |
| """Warm-up command: prints Hello, {name}!""" | |
| print(f"[bold green]Hello, {name}![/]") | |
| def heatmap(): | |
| """Show token-similarity heatmap from tensor.pt.""" | |
| # import here so chat() doesn’t drag in sklearn | |
| from .heatmap import show_heatmap | |
| show_heatmap() | |
| def chat(question: str = typer.Argument(..., help="Question to ask RepoSage")): | |
| """Invoke the embedding Q&A.""" | |
| response = chat_plugin(question) | |
| print(response) | |
| if __name__ == "__main__": | |
| app() | |