# Implementing chatbot history like chatgpt on gradio gr.chatinterface()

**URL:** <https://discuss.huggingface.co/t/implementing-chatbot-history-like-chatgpt-on-gradio-gr-chatinterface/52186>\
**Category:** 🔒 Gradio\
**Created:** [August 25, 2023, 3:43pm UTC](https://discuss.huggingface.co/t/implementing-chatbot-history-like-chatgpt-on-gradio-gr-chatinterface/52186 "2023-08-25T15:43:40Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![nbaru](https://avatars.discourse-cdn.com/v4/letter/n/0ea827/32.png) [@nbaru](https://discuss.huggingface.co/u/nbaru)\
**Post date:** [August 25, 2023, 3:43pm UTC](https://discuss.huggingface.co/t/implementing-chatbot-history-like-chatgpt-on-gradio-gr-chatinterface/52186/1 "2023-08-25T15:43:40Z")

</div>

Hello there! How can I implement chatbot history like chatgpt where the chatbot remembers past prompts in gradio with the new gr.chatinterface().

---

<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:** [August 25, 2023, 7:11pm UTC](https://discuss.huggingface.co/t/implementing-chatbot-history-like-chatgpt-on-gradio-gr-chatinterface/52186/2 "2023-08-25T19:11:00Z")

</div>

Hi @nbaru take a look at this Space which does something similar. The source code is available by clicking on “Files” in the top right: [Llama2 With Gradio Chat - a Hugging Face Space by chansung](https://huggingface.co/spaces/chansung/llama2-with-gradio-chat)

---

<div class="post-metadata">

**Author:** ![nbaru](https://avatars.discourse-cdn.com/v4/letter/n/0ea827/32.png) [@nbaru](https://discuss.huggingface.co/u/nbaru)\
**Post date:** [August 26, 2023, 1:22am UTC](https://discuss.huggingface.co/t/implementing-chatbot-history-like-chatgpt-on-gradio-gr-chatinterface/52186/3 "2023-08-26T01:22:59Z")

</div>

Thank you so much!
