Spaces:
Sleeping
Sleeping
Update components/login_signup.py
Browse files
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
|
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
|
|
|
|
|
|
|
|
|
|