# Progress Bar

**URL:** <https://support.prodi.gy/t/progress-bar/4728>\
**Category:** Uncategorized\
**Tags:** solved, usage, custom\
**Created:** [September 27, 2021, 6:53pm UTC](https://support.prodi.gy/t/progress-bar/4728 "2021-09-27T18:53:21Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![hmousa961](https://sea2.discourse-cdn.com/flex020/user_avatar/support.prodi.gy/hmousa961/32/2181_2.png) [@hmousa961](https://support.prodi.gy/u/hmousa961)\
**Post date:** [September 27, 2021, 6:53pm UTC](https://support.prodi.gy/t/progress-bar/4728/1 "2021-09-27T18:53:22Z")

</div>

Hi,  
I am using spans.correct for annotating datasets. I am trying to make the progress bar shows the total examples in the dataset and then show the user how many examples are left. I checked the custom recipe for progress in your documentation but I did not know how to use it or integrate it in spans.correct. If you can please help by giving me steps on how to make it work, I would really appreciate it.

Thanks in advance for your time.

---

<div class="post-metadata">

**Author:** ![hmousa961](https://sea2.discourse-cdn.com/flex020/user_avatar/support.prodi.gy/hmousa961/32/2181_2.png) [@hmousa961](https://support.prodi.gy/u/hmousa961)\
**Post date:** [September 27, 2021, 7:32pm UTC](https://support.prodi.gy/t/progress-bar/4728/2 "2021-09-27T19:32:40Z")

</div>

The thing is it always gives me the progress bar as infinity. Is there a way to change it to the total number of examples in the file. I tried your solution from a thread before which is adding stream = list(stream) in the recipe and it worked on spans.manual (shows a percentage with annotating). However, it doesn't work with spans.correct

---

<div class="post-metadata">

**Author:** ![ines](https://sea2.discourse-cdn.com/flex020/user_avatar/support.prodi.gy/ines/32/3_2.png) [@ines](https://support.prodi.gy/u/ines)\
**Post date:** [September 28, 2021, 3:46pm UTC](https://support.prodi.gy/t/progress-bar/4728/3 "2021-09-28T15:46:00Z")

</div>

Since you're using `spans.correct`, you must be on Prodigy v1.11, which should automatically count streams by default. Could you check in your `prodigy.json` and make sure that you're not setting `auto_count_stream` to `false`?

Alternatively, you can also use the `total_examples_target` setting to define a target number of examples to use for calculating the progress: [Installation & Setup · Prodigy · An annotation tool for AI, Machine Learning & NLP](https://prodi.gy/docs/install#config)

> [@hmousa961](#):
>
> I tried your solution from a thread before which is adding stream = list(stream) in the recipe and it worked on spans.manual (shows a percentage with annotating). However, it doesn't work with spans.correct

Adding this as a more general note for older versions, in case others come across this later: Are you sure you're adding it at the end of the recipe? If there are any steps afterwards that convert the stream to a potentially infinite generator again, it won't work.

---

<div class="post-metadata">

**Author:** ![hmousa961](https://sea2.discourse-cdn.com/flex020/user_avatar/support.prodi.gy/hmousa961/32/2181_2.png) [@hmousa961](https://support.prodi.gy/u/hmousa961)\
**Post date:** [October 4, 2021, 7:27am UTC](https://support.prodi.gy/t/progress-bar/4728/4 "2021-10-04T07:27:34Z")

</div>

Thank you so much. The auto\_count\_stream is working fine with me. Also, the stram = list(stream) worked after adding it at the end of the recipe.
