bradley6597 commited on
Commit
1df7d6d
·
verified ·
1 Parent(s): 29637ab

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -1,8 +1,10 @@
1
  import gradio as gr
2
-
 
3
 
4
  with gr.Blocks() as app:
5
  with gr.Row():
6
  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>")
7
-
 
8
  app.launch()
 
1
  import gradio as gr
2
+ def same_auth(username, password):
3
+ return(username == os.environ['username']) & (password == os.environ['password'])
4
 
5
  with gr.Blocks() as app:
6
  with gr.Row():
7
  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>")
8
+ app.auth = (same_auth)
9
+ app.auth_message = ''
10
  app.launch()