Stability-AI / StableStudio

Community interface for generative AI
MIT License
8.57k stars 847 forks source link

Multi user\session support #74

Open jakerator opened 1 year ago

jakerator commented 1 year ago

Is your feature request related to a problem? Please describe. Is there a way to run single install for multiple users, to make each browser session independent?

Describe the solution you'd like If possible, need to make a way to separate browser session (by some auth, url variable etc), to allow multiple users on single running instance

harrywang commented 1 year ago

DreamStudio accurately supports this - wonder how it was done.

jakerator commented 1 year ago

DreamStudio accurately supports this - wonder how it was done.

Hm... Any documentation about that in DreamStudio?

KAJdev commented 1 year ago

This should be possible out of the box if I'm not misunderstanding. StableStudio is a react app, meaning it can be served as a static bundle and each browser has its own instance. Auth can be implemented if you need a way to differentiate users between sessions but is implementation-specific.

santigibo commented 1 year ago

Working on it, I saw that you can create different images per user if each of your users has a UUID4. In the createStableDiffusionImage, queryAssets, etc. methods, you can send a project id, which is the UUID4. When your user creates an images, is sent through the specific UUID4 you gave it, and it will work perfectly having just your user images (associated to the UUID4)