Chris Addis commited on
Commit
0e13f7c
·
1 Parent(s): be5eb70
Files changed (1) hide show
  1. app.py +5 -5
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
- gr.Markdown(auth_state)
173
- if auth_state is False:
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