# Trouble with finding flagged output

**URL:** </static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Ftrouble-with-finding-flagged-output%2F11222%3E%5C
**Category:** 🔒 Gradio\
**Created:** [October 30, 2021, 10:21pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Ftrouble-with-finding-flagged-output%2F11222 "2021-10-30T22:21:23Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![green](https://avatars.discourse-cdn.com/v4/letter/g/54ee81/32.png) [@green](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fgreen)%5C
**Post date:** [October 30, 2021, 10:21pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Ftrouble-with-finding-flagged-output%2F11222%2F1 "2021-10-30T22:21:23Z")

</div>

In Spaces there is a flag button on the output widget and I can’t seem to figure out how to find the text that has been flagged.

I have tried setting the flagged\_dir argument in Gradio’s interface function to a number of paths: my username/app, my username/app/blob, and my username/app/blob/main, as well as all those with ‘/flagged’ appended. I had imagined that if successful, a folder would appear in the repo for my app containing text files. Is that something I would need to do more to set up?

I was attempting to work it out last night and today my flag button is disabled in both of my spaces, which makes me wonder if I was cut off by HF for flag abuse, but that’s a separate question.

What am I missing about flagging?

Should I be raising this question in a Gradio forum instead?

---

<div class="post-metadata">

**Author:** ![dariolopez](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/dariolopez/32/26240_2.png) [@dariolopez](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fdariolopez)%5C
**Post date:** [April 10, 2023, 10:10am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Ftrouble-with-finding-flagged-output%2F11222%2F2 "2023-04-10T10:10:27Z")

</div>

Same point here.

Any solution? I strongly need the feedback from my users 😛

---

<div class="post-metadata">

**Author:** ![radames](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/radames/32/28246_2.png) [@radames](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fradames)%5C
**Post date:** [April 10, 2023, 4:56pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Ftrouble-with-finding-flagged-output%2F11222%2F3 "2023-04-10T16:56:10Z")

</div>

hi @dariolopez,

If you’re running flagging with Gradio, you’ll need to set some form of data persistency. In our guide you can learn how to sync the flagged data into a dataset on our hub.

> **[Using Flagging](https://gradio.app/using-flagging/)**
>
> A Step-by-Step Gradio Tutorial

---

<div class="post-metadata">

**Author:** ![dariolopez](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/dariolopez/32/26240_2.png) [@dariolopez](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fdariolopez)%5C
**Post date:** [April 20, 2023, 5:05pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Ftrouble-with-finding-flagged-output%2F11222%2F4 "2023-04-20T17:05:52Z")

</div>

Thanks @radames,

It worked fine. I was expecting the dataset to be created in a folder in the own Space, but actually it was saved in a dataset on HuggingFace using `HuggingFaceDatasetSaver`.

---

<div class="post-metadata">

**Author:** ![freddyaboulton](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/freddyaboulton/32/32732_2.png) [@freddyaboulton](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Ffreddyaboulton)%5C
**Post date:** [April 24, 2023, 2:27pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Ftrouble-with-finding-flagged-output%2F11222%2F5 "2023-04-24T14:27:06Z")

</div>

Yes that’s true. The space filesystem is ephemeral so the flagged data would not persist past restarts if it was saved on the space.
