hussamalafandi commited on
Commit
f1d1c04
·
1 Parent(s): 5d74cf2

Add save_history parameter to ChatInterface for preserving conversation history

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -44,6 +44,7 @@ For information on how to customize the ChatInterface, peruse the gradio docs: h
44
  demo = gr.ChatInterface(
45
  fn=respond,
46
  type="messages",
 
47
  additional_inputs=[
48
  gr.Textbox(value="You are a friendly Chatbot.",
49
  label="System message"),
 
44
  demo = gr.ChatInterface(
45
  fn=respond,
46
  type="messages",
47
+ save_history=True,
48
  additional_inputs=[
49
  gr.Textbox(value="You are a friendly Chatbot.",
50
  label="System message"),