Skip to content

Save the history to a json file or a database and load it after restart gradio, using a chatinterface with save_history=True #10856

@clebermarq

Description

@clebermarq
  • I have searched to see if a similar issue already exists.

Is your feature request related to a problem? Please describe.
I created a chatbot program using the component chatinterface for gradio. I added the parameter save_history=True and it works fine. It creates the option to create a new conversation, clear the current conversation and etc.
But, when I restart the application, all the conversation history is cleared and starts with null again.
Is there a way to save all conversations history to a file or a database in order to restore it when the application is restarted?

Describe the solution you'd like
Save all conversations history to a file or a database in order to restore it when the application is restarted.

Additional context
Add any other context or screenshots about the feature request here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions