Rohit Rajpoot commited on
Commit
e042c07
·
1 Parent(s): fb2b4e2

make changes to main.py

Browse files
Files changed (2) hide show
  1. .DS_Store +0 -0
  2. assist/main.py +3 -2
.DS_Store ADDED
Binary file (6.15 kB). View file
 
assist/main.py CHANGED
@@ -1,6 +1,5 @@
1
  import typer
2
  from rich import print
3
- from .heatmap import show_heatmap
4
  from .chat import chat as chat_plugin
5
 
6
  app = typer.Typer(help="RepoSage Synth CLI")
@@ -13,11 +12,13 @@ def hello(name: str = "world"):
13
  @app.command()
14
  def heatmap():
15
  """Show token-similarity heatmap from tensor.pt."""
 
 
16
  show_heatmap()
17
 
18
  @app.command()
19
  def chat(question: str = typer.Argument(..., help="Question to ask RepoSage")):
20
- """Invoke the chat plugin stub."""
21
  response = chat_plugin(question)
22
  print(response)
23
 
 
1
  import typer
2
  from rich import print
 
3
  from .chat import chat as chat_plugin
4
 
5
  app = typer.Typer(help="RepoSage Synth CLI")
 
12
  @app.command()
13
  def heatmap():
14
  """Show token-similarity heatmap from tensor.pt."""
15
+ # import here so chat() doesn’t drag in sklearn
16
+ from .heatmap import show_heatmap
17
  show_heatmap()
18
 
19
  @app.command()
20
  def chat(question: str = typer.Argument(..., help="Question to ask RepoSage")):
21
+ """Invoke the embedding Q&A."""
22
  response = chat_plugin(question)
23
  print(response)
24