[Feature] Add User history

#4
by Wauplin HF staff - opened

This PR adds a User History feature:

  • Past generations are saved and accessible in a separate section. Users can see all the images they've already generated.
  • metadata are saved for each image (prompts, guidance scale, nb steps, timestamp,...)
  • Images and metadata can be exported by the user
  • A delete button allows the user to delete their history for privacy reason
  • An admin panel shows how many images have being generated and saved, by how many users and how much storage is left (only accessible to Space owners).

For optimal UX, a Persistent Storage must be attached to the Space. If it's not case, the user history will still work but images will be lost when Space restarts. A disclaimer warns the user to export their creation to save them properly.

Here is a demo Space showcasing the User History feature. You can also find it on popular Spaces like AP123/IllusionDiffusion and warp-ai/Wuerstchen.

Please let me know if you have any questions!

Preview:

(Wurstchen Space)

preview

Wauplin changed pull request title from [WIP] to [Feature] Add User history
patrickvonplaten changed pull request status to merged

Sign up or log in to comment