Pijush2023 commited on
Commit
0fee5e6
·
verified ·
1 Parent(s): 209dea0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -1420,7 +1420,7 @@ with gr.Blocks() as demo:
1420
  password = gr.Textbox(label="Password", type="password")
1421
  login_button = gr.Button("Login")
1422
  login_output = gr.Markdown()
1423
- login_button.click(fn=check_login, inputs=[username, password], outputs=[login_output, login_row, demo])
1424
 
1425
  with gr.Column():
1426
  gr.Markdown("### Create Account")
@@ -1462,3 +1462,4 @@ with gr.Blocks() as demo:
1462
 
1463
  demo.queue()
1464
  demo.launch(share=True)
 
 
1420
  password = gr.Textbox(label="Password", type="password")
1421
  login_button = gr.Button("Login")
1422
  login_output = gr.Markdown()
1423
+ login_button.click(fn=check_login, inputs=[username, password], outputs=[login_output, login_row, gr.update(visible=True)])
1424
 
1425
  with gr.Column():
1426
  gr.Markdown("### Create Account")
 
1462
 
1463
  demo.queue()
1464
  demo.launch(share=True)
1465
+