Gradio authentication with Docker powered space
Hello,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.Password Protected Space - a Hugging Face Space by OmnibusThe space builds fine, however, it doesn’t seem to actually ask for any authentication.Any assistance would be greatly appreciated!Thanks!My Dockerfile:Dockerfile · iamrobotbear/webui-docker at mainLaunch:oh-no.py · iamrobotbear/webui-docker at main
2023-02-15T03:55:13Z
@freddyaboultonI saw you merged a fix - any idea how to make this work?Thanks!
2023-02-15T14:44:36Z
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))”
2023-02-15T17:08:48Z
Ooh, maybe that’s the issue is the version of Gradio is outdated@freddyaboulton.@camenduruIf 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 aRUN pip install gradio==3.17.0to my Dockerfile would this update it or do I need to do something else?github.comAUTOMATIC1111/stable-diffusion-webui/blob/master/requirements.txtblendmodes
accelerate
basicsr
fonts
font-roboto
gfpgan
gradio==3.16.2
invisible-watermark
numpy
omegaconf
opencv-contrib-python
requests
piexif
Pillow
pytorch_lightning==1.7.7
realesrgan
scikit-image>=0.19
timm==0.4.12
transformers==4.25.1
torchThis file has been truncated.show original
2023-02-15T17:33:11Z
Hi@iamrobotbearmaybe this helpsYou 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.fromCommand Line Arguments and Settings · AUTOMATIC1111/stable-diffusion-webui Wiki · GitHub