# Connection errored out and new bug

**URL:** </static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fconnection-errored-out-and-new-bug%2F88925%3E%5C
**Category:** Spaces\
**Created:** [May 28, 2024, 8:32am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fconnection-errored-out-and-new-bug%2F88925 "2024-05-28T08:32:37Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![pg56714](https://avatars.discourse-cdn.com/v4/letter/p/57b2e6/32.png) [@pg56714](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fpg56714)%5C
**Post date:** [May 28, 2024, 8:32am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fconnection-errored-out-and-new-bug%2F88925%2F1 "2024-05-28T08:32:37Z")

</div>

After clicking on the examples, click again to directly display the results without needing to click ‘submit’.

According to this question, Connection errored out will appear when pressing submit to execute.

I tried the same approach and found that others using Gradio on Hugging Face also have this issue where results are produced without needing to click submit.

This issue does not occur locally.

I also reported it to Gradio.

[Question Video( **Three cases have been attached to the Google folder linked below** )](https://drive.google.com/drive/folders/1_APOIN3pkhuvcjlTtfyj24D4j0Gr6I0M?usp=sharing)

> **[Segment Anything Arena - a Hugging Face Space by pg56714](https://huggingface.co/spaces/pg56714/Segment-Anything-Arena)**
>
> Discover amazing ML apps made by the community

---

<div class="post-metadata">

**Author:** ![pg56714](https://avatars.discourse-cdn.com/v4/letter/p/57b2e6/32.png) [@pg56714](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fpg56714)%5C
**Post date:** [May 31, 2024, 5:11am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fconnection-errored-out-and-new-bug%2F88925%2F2 "2024-05-31T05:11:08Z")

</div>

After further inspection, the issue was that gr.Examples was bound to fn, causing automatic execution when clicking on examples. It was resolved after removing that binding. Thank.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/hellohellohello/original/2X/d/de4155eb4aa4108ecb32a1389d7cc37ae69f88b7.png) [@system](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fsystem)%5C
**Post date:** [May 31, 2024, 5:11pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fconnection-errored-out-and-new-bug%2F88925%2F3 "2024-05-31T17:11:41Z")

</div>

This topic was automatically closed 12 hours after the last reply. New replies are no longer allowed.
