Skip to content

Commit

Permalink
Fix truss predict output. (#687)
Browse files Browse the repository at this point in the history
  • Loading branch information
squidarth authored Sep 28, 2023
1 parent defd8f0 commit 94b39f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion truss/cli/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,7 @@ def predict(
result = service.predict(request_data)
if inspect.isgenerator(result):
for chunk in result:
rich.print(chunk, end="")
click.echo(chunk, nl=False)
return
rich.print_json(data=result)

Expand Down

0 comments on commit 94b39f9

Please sign in to comment.