Chris Addis commited on
Commit ·
0e13f7c
1
Parent(s): be5eb70
OAuth
Browse files
app.py
CHANGED
|
@@ -166,11 +166,11 @@ def create_demo():
|
|
| 166 |
|
| 167 |
#new bit with authroisation
|
| 168 |
# define it false to begin with
|
| 169 |
-
auth_state = gr.State(False)
|
| 170 |
-
|
| 171 |
-
demo.load(check_authorization, inputs=None, outputs=[auth_state])
|
| 172 |
-
|
| 173 |
-
if
|
| 174 |
# free version - yeah baby
|
| 175 |
login_button = gr.LoginButton()
|
| 176 |
|
|
|
|
| 166 |
|
| 167 |
#new bit with authroisation
|
| 168 |
# define it false to begin with
|
| 169 |
+
#auth_state = gr.State(False)
|
| 170 |
+
|
| 171 |
+
#demo.load(check_authorization, inputs=None, outputs=[auth_state])
|
| 172 |
+
|
| 173 |
+
if check_authorization(None):
|
| 174 |
# free version - yeah baby
|
| 175 |
login_button = gr.LoginButton()
|
| 176 |
|