# Updating progress based on SSE event?

**URL:** </static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fupdating-progress-based-on-sse-event%2F76739%3E%5C
**Category:** Beginners\
**Created:** [March 10, 2024, 11:43am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fupdating-progress-based-on-sse-event%2F76739 "2024-03-10T11:43:40Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![happyday1](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/happyday1/32/17711_2.png) [@happyday1](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fhappyday1)%5C
**Post date:** [March 10, 2024, 11:43am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fupdating-progress-based-on-sse-event%2F76739%2F1 "2024-03-10T11:43:40Z")

</div>

From what I can tell, dynamic updating of an output can occur on a change event on an input. But the input has to be triggered by a user. Is there a way to programmatically update an output (say Textbox) based on receiving an SSE event (e.g.: FastAPI + Gradio)? Or is there a better way to address this challenge (of receiving incoming events from a long running task)? Thank you.
