I have a cloned/duplicated copy of @camenduru’s Stable Diffusion Web UI and it’s great, running on Docker via Huggingface Spaces - thank you!
However, I’m attempting to add Gradio authentication to the app via @Omnibus’s implementation or literally any Gradio based authentication.
The space builds fine, however, it doesn’t seem to actually ask for any authentication.
Any assistance would be greatly appreciated!
@freddyaboulton I saw you merged a fix - any idea how to make this work?
Hi @iamrobotbear ! The fix for gradio auth on Spaces got released in version 3.17.0.
What version is the stable diffusion web ui using in your space? No super familiar with how the auto1111 web ui is structured but wherever the app is launched, you should be able to do “app.launch(auth=(username,password))”
Ooh, maybe that’s the issue is the version of Gradio is outdated @freddyaboulton.
@camenduru If I wanted to override the version of Gradio installed as it looks like the auto1111 requirements.txt file calls for version 3.16.2 can I simply add a
RUN pip install gradio==3.17.0 to my Dockerfile would this update it or do I need to do something else?
Hi @iamrobotbear maybe this helps
You may set up authentication for said gradio shared instance with the flag
--gradio-auth username:password , optionally providing multiple sets of usernames and passwords separated by commas.
from Command Line Arguments and Settings · AUTOMATIC1111/stable-diffusion-webui Wiki · GitHub