DR.LIOU_DEMO / auth.py
wanwanlin0521's picture
Create auth.py
bfab423 verified
raw
history blame contribute delete
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."