# Gradio api Streaming

**URL:** <https://discuss.huggingface.co/t/gradio-api-streaming/45395>\
**Category:** 🔒 Gradio\
**Created:** [July 2, 2023, 8:48pm UTC](https://discuss.huggingface.co/t/gradio-api-streaming/45395 "2023-07-02T20:48:48Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![YaTharThShaRma999](https://avatars.discourse-cdn.com/v4/letter/y/41988e/32.png) [@YaTharThShaRma999](https://discuss.huggingface.co/u/YaTharThShaRma999)\
**Post date:** [July 2, 2023, 8:48pm UTC](https://discuss.huggingface.co/t/gradio-api-streaming/45395/1 "2023-07-02T20:48:48Z")

</div>

So i have a gradio chatbot app that streams it’s text output and i want to use gradio app api to get the output from another place. Currently, it only returns the first word generated. It would be awesome if anyone helped me!

---

<div class="post-metadata">

**Author:** ![abidlabs](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/abidlabs/32/21878_2.png) [@abidlabs](https://discuss.huggingface.co/u/abidlabs)\
**Post date:** [July 12, 2023, 5:15am UTC](https://discuss.huggingface.co/t/gradio-api-streaming/45395/2 "2023-07-12T05:15:14Z")

</div>

If you use the client’s `submit()` function, you can get access to streaming outputs. Here’s more information on how to do this @YaTharThShaRma999:

> **[Getting Started With The Python Client](https://www.gradio.app/guides/getting-started-with-the-python-client#generator-endpoints)**
>
> A Step-by-Step Gradio Tutorial

---

<div class="post-metadata">

**Author:** ![YaTharThShaRma999](https://avatars.discourse-cdn.com/v4/letter/y/41988e/32.png) [@YaTharThShaRma999](https://discuss.huggingface.co/u/YaTharThShaRma999)\
**Post date:** [July 12, 2023, 8:58pm UTC](https://discuss.huggingface.co/t/gradio-api-streaming/45395/3 "2023-07-12T20:58:32Z")

</div>

Thanks abidlabs!
