Skip to content

Commit

Permalink
text-generation: improve output printing (huggingface#1486)
Browse files Browse the repository at this point in the history
  • Loading branch information
mgonchar authored and Liangyx2 committed Jan 20, 2025
1 parent be15e40 commit 27a5da5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/text-generation/run_generation.py
Original file line number Diff line number Diff line change
Expand Up @@ -569,7 +569,7 @@ def rounder(x):
for j, output in enumerate(
zip(generated[args.num_return_sequences * i : args.num_return_sequences * (i + 1)])
):
print(f"output {j+1}: {output}")
print(f"output {i+1}.{j+1}: {output}")
all_outputs.append(output)
print()

Expand Down

0 comments on commit 27a5da5

Please sign in to comment.