Zwounds commited on
Commit
b265e28
·
verified ·
1 Parent(s): b4abb5e

Update cv_extraction_app.py

Browse files
Files changed (1) hide show
  1. cv_extraction_app.py +7 -0
cv_extraction_app.py CHANGED
@@ -830,6 +830,13 @@ with gr.Blocks(title="CV to CSV Extraction App") as app:
830
  inputs=[password_input],
831
  outputs=[login_group, main_app, login_error, authenticated]
832
  )
 
 
 
 
 
 
 
833
 
834
  # Launch the app
835
  if __name__ == "__main__":
 
830
  inputs=[password_input],
831
  outputs=[login_group, main_app, login_error, authenticated]
832
  )
833
+
834
+ # Make pressing Enter in password field work
835
+ password_input.submit(
836
+ fn=login,
837
+ inputs=[password_input],
838
+ outputs=[login_group, main_app, login_error, authenticated]
839
+ )
840
 
841
  # Launch the app
842
  if __name__ == "__main__":