Update app.py
Browse files
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()
|