Skip to content

Commit

Permalink
tool : fixed unwanted text in progress bar (#39)
Browse files Browse the repository at this point in the history
  • Loading branch information
shaluchan authored Oct 19, 2024
1 parent af600d9 commit 97d3c06
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tool.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def display_progress_bar(task_description, steps_completed, total=100, duration=
"""
function which Displays a progress bar.
"""
with tqdm(total=total, desc=task_description, ncols=100, colour='green') as pbar:
with tqdm(total=total, desc=task_description, ncols=100, colour='green',bar_format='{l_bar}{bar} | {n_fmt}/{total_fmt}') as pbar:
for _ in range(steps_completed):
time.sleep(duration / steps_completed) # Control smoothness of progress
pbar.update(1) # Increment the bar by 1 step
Expand Down

0 comments on commit 97d3c06

Please sign in to comment.