Severian commited on
Commit
cfde8ee
·
verified ·
1 Parent(s): f61cbd8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +15 -0
app.py CHANGED
@@ -796,6 +796,21 @@ with gr.Blocks(theme='Hev832/Applio', css=css, fill_width=True, fill_height=True
796
  concurrency_limit=20
797
  )
798
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
799
  # Load models on launch
800
  load_models_on_launch()
801
 
 
796
  concurrency_limit=20
797
  )
798
 
799
+ # Define login button click behavior
800
+ login_button.click(
801
+ login,
802
+ inputs=[username, password],
803
+ outputs=[app_container, login_error, login_button]
804
+ )
805
+
806
+ # Define password textbox submit behavior
807
+ password.submit(
808
+ login,
809
+ inputs=[username, password],
810
+ outputs=[app_container, login_error, login_button]
811
+ )
812
+
813
+
814
  # Load models on launch
815
  load_models_on_launch()
816