Chris Addis commited on
Commit
ef9edfd
·
1 Parent(s): 3daaa7b

more tests

Browse files
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -26,7 +26,7 @@ with gr.Blocks() as demo:
26
  # Create a State component to store authentication status
27
  auth_state = gr.State(False)
28
 
29
- #login_button = gr.LoginButton()
30
 
31
  # Message component to show auth status
32
  auth_message = gr.Textbox(label="Authorization Status", interactive=False)
@@ -37,8 +37,7 @@ with gr.Blocks() as demo:
37
 
38
  def test_func(auth_state):
39
  return auth_state
40
-
41
 
42
- ##login_button.click(fn=test_func,inputs=auth_state,outputs=auth_message)
43
 
44
  demo.launch()
 
26
  # Create a State component to store authentication status
27
  auth_state = gr.State(False)
28
 
29
+ login_button = gr.LoginButton()
30
 
31
  # Message component to show auth status
32
  auth_message = gr.Textbox(label="Authorization Status", interactive=False)
 
37
 
38
  def test_func(auth_state):
39
  return auth_state
 
40
 
41
+ login_button.click(fn=test_func,inputs=auth_state,outputs=auth_message)
42
 
43
  demo.launch()