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

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

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

Thank you so much!