# Any example of using gradio with apply\_chat\_template?

**URL:** </static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fany-example-of-using-gradio-with-apply-chat-template%2F69365%3E%5C
**Category:** 🤗Transformers\
**Created:** [January 16, 2024, 12:56pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fany-example-of-using-gradio-with-apply-chat-template%2F69365 "2024-01-16T12:56:16Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![robot1125](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/robot1125/32/22172_2.png) [@robot1125](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Frobot1125)%5C
**Post date:** [January 16, 2024, 12:56pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fany-example-of-using-gradio-with-apply-chat-template%2F69365%2F1 "2024-01-16T12:56:16Z")

</div>

Does anyone have a small example of using apply\_chat\_template within a gradio app? I’m not exactly sure what the basic code should look like and for some reason my google-fu is not strong with this question.
