mirror of
https://github.com/open-compass/opencompass.git
synced 2025-05-30 16:03:24 +08:00
18 lines
400 B
Python
18 lines
400 B
Python
from rich.progress import (
|
|
BarColumn,
|
|
MofNCompleteColumn,
|
|
Progress,
|
|
TextColumn,
|
|
TimeElapsedColumn,
|
|
)
|
|
|
|
|
|
def progress(note: str = "processing"):
|
|
return Progress(
|
|
TextColumn(f"{note} •" + "[progress.percentage]{task.percentage:>3.0f}%"),
|
|
BarColumn(),
|
|
MofNCompleteColumn(),
|
|
TextColumn("•"),
|
|
TimeElapsedColumn(),
|
|
)
|