From 97d3c06665d7cc9236f7960d5d230075ad7c3dd2 Mon Sep 17 00:00:00 2001 From: Shalu Singh <155536136+shaluchan@users.noreply.github.com> Date: Sat, 19 Oct 2024 17:59:21 +0530 Subject: [PATCH] tool : fixed unwanted text in progress bar (#39) --- tool.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tool.py b/tool.py index 92d5a2e..0ffc285 100644 --- a/tool.py +++ b/tool.py @@ -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