nagasurendra commited on
Commit
8c5f062
·
verified ·
1 Parent(s): 0f510ea

Update components/login_signup.py

Browse files
Files changed (1) hide show
  1. components/login_signup.py +1 -6
components/login_signup.py CHANGED
@@ -1,7 +1,7 @@
1
  import gradio as gr
2
  from utils.database_handler import check_credentials, save_user
3
 
4
- def login_page():
5
  def authenticate_user(email, password):
6
  if check_credentials(email, password):
7
  return gr.update(visible=False), gr.update(visible=True), "Welcome to Biryani Hub!"
@@ -66,8 +66,3 @@ def login_page():
66
  )
67
 
68
  return login_interface
69
-
70
-
71
- # Export function to integrate into app.py
72
- def login_signup():
73
- return login_page()
 
1
  import gradio as gr
2
  from utils.database_handler import check_credentials, save_user
3
 
4
+ def login_signup():
5
  def authenticate_user(email, password):
6
  if check_credentials(email, password):
7
  return gr.update(visible=False), gr.update(visible=True), "Welcome to Biryani Hub!"
 
66
  )
67
 
68
  return login_interface