[Feature] Add User history

#5
by Wauplin HF staff - opened

Very nice Space! I'm opening this PR to add a User History feature if you are interested in it.

What it does:

  • 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 (prompt, pipeline, 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

ChenyangSi changed pull request status to merged

Sign up or log in to comment