Junaidb commited on
Commit
164f9c7
·
verified ·
1 Parent(s): 73a9c1a

Update ui.py

Browse files
Files changed (1) hide show
  1. ui.py +2 -2
ui.py CHANGED
@@ -22,10 +22,10 @@ def InitSession():
22
 
23
  InitSession()
24
 
25
- name, auth_status, username = authenticator.login('Login', 'main')
26
 
27
  try:
28
- registration_success = authenticator.register_user("Register", location="unrendered")
29
  except Exception as e:
30
  registration_success = False
31
  st.error(f"Registration error: {e}")
 
22
 
23
  InitSession()
24
 
25
+ name, auth_status, username = authenticator.login('main', fields={'Form name': 'Login'})
26
 
27
  try:
28
+ registration_success = authenticator.register_user("main")
29
  except Exception as e:
30
  registration_success = False
31
  st.error(f"Registration error: {e}")