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

**URL:** <https://discuss.huggingface.co/t/any-example-of-using-gradio-with-apply-chat-template/69365>\
**Category:** 🤗Transformers\
**Created:** [January 16, 2024, 12:56pm UTC](https://discuss.huggingface.co/t/any-example-of-using-gradio-with-apply-chat-template/69365 "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](https://discuss.huggingface.co/u/robot1125)\
**Post date:** [January 16, 2024, 12:56pm UTC](https://discuss.huggingface.co/t/any-example-of-using-gradio-with-apply-chat-template/69365/1 "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.
