import gradio as gr | |
def same_auth(username, password): | |
return(username == os.environ['username']) & (password == os.environ['password']) | |
with gr.Blocks() as app: | |
with gr.Row(): | |
gr.HTML("<h1>This tool is no longer updated. Please go to this <a href='https://sites.google.com/twinkl.co.uk/gdrive-illustration-search/home'>link</a></h1>") | |
app.auth = (same_auth) | |
app.auth_message = '' | |
app.launch() |