Skip to content

Commit

Permalink
Update console rendering
Browse files Browse the repository at this point in the history
  • Loading branch information
davidmezzetti committed Jan 19, 2023
1 parent 9edabdd commit 244ad1d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/python/paperai/query.py
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ def query(embeddings, db, query, topn, threshold):

# Create console printer
console = Console(soft_wrap=True)
with console.capture() as capture:
with console.capture() as output:
# Print query
console.print(f"[dark_orange]Query: {query}[/dark_orange]")
console.print()
Expand Down Expand Up @@ -296,7 +296,7 @@ def query(embeddings, db, query, topn, threshold):
console.print()

# Print console output
print(capture.get())
print(output.get())

@staticmethod
def run(query, topn=None, path=None, threshold=None):
Expand Down

0 comments on commit 244ad1d

Please sign in to comment.