Stability-AI / StableStudio

Community interface for generative AI

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Multi user\session support

jakerator opened this issue · comments

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

DreamStudio accurately supports this - wonder how it was done.

DreamStudio accurately supports this - wonder how it was done.

Hm... Any documentation about that in DreamStudio?

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.

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)