Spaces:
Running on CPU Upgrade

This PR adds a User History feature for logged-in users:

  • "Past generations" are saved in a separate tab. Users can see all the images they've already generated.
  • save metadata for each image (prompts, guidance scale, nb steps, timestamp,...)
  • export button (exports user history as zip)
  • delete button (requested to respect privacy)
  • refresh button (avoid having the page reloaded all the time)
  • admin panel (how many users and images? how much storage left?)
  • works both with and without Persistent Storage. Meaning less friction for users duplicating the Space without paying for Persistent Storage. They risk loosing their history but at least the app works correctly (with a disclaimer).

For an optional experience, a Persistent Storage must be added to the Space (in the settings). Otherwise generated images will be lost on Space restart. If the Persistent Storage is set, it will automatically be detected and used.

Here is a demo Space to try the User History component. The Community Tab is open for feedback.

Please let me know if you have any questions!

Preview:

(Wurstchen Space)

preview

multimodalart changed pull request status to merged

Sign up or log in to comment