Spaces:
Sleeping
Sleeping
Download auth.py from wanwanlin0521/DR.LIOU_DEMO: direct link, hf CLI and curl.
- Browser
- Download file 257 Bytes
-
https://huggingface.co/spaces/wanwanlin0521/DR.LIOU_DEMO/resolve/main/auth.py
- Command line
-
hf download hf://spaces/wanwanlin0521/DR.LIOU_DEMO/auth.py
-
curl -L -o auth.py https://huggingface.co/spaces/wanwanlin0521/DR.LIOU_DEMO/resolve/main/auth.py
257 Bytes
| # auth.py | |
| import gradio as gr | |
| PASSWORD = "alivio0000" | |
| def check_password(pwd): | |
| if pwd == PASSWORD: | |
| return gr.update(visible=False), gr.update(visible=True), "" | |
| return gr.update(visible=True), gr.update(visible=False), "Incorrect password." |