Say you want to add progress bars to a zero-shot pipeline in huggingface, you can use tqdm.trange function to iterate over batches and feed them in via a for loop:
A pattern used in Sentence Transformers is to set up a show_progress variable and set trange(disable=not show_progress) in the case that the user does not want to output a progress bar.