MANIKANDAN A
commited on
Commit
·
4242100
1
Parent(s):
e5b1de1
Update app.py
Browse files
app.py
CHANGED
@@ -29,7 +29,6 @@ def create_table():
|
|
29 |
|
30 |
# Function to handle user signup
|
31 |
def signup():
|
32 |
-
st.title("Signup")
|
33 |
st.markdown("<p style='font-size: 24px; font-weight: bold; margin-bottom: 20px; text-align: center;'>Signup</p>", unsafe_allow_html=True)
|
34 |
st.markdown("<p style='text-align: center;'>Please fill in the details to sign up:</p>", unsafe_allow_html=True)
|
35 |
|
@@ -37,7 +36,7 @@ def signup():
|
|
37 |
new_password = st.text_input("New Password", type="password")
|
38 |
new_email = st.text_input("Email")
|
39 |
|
40 |
-
if st.button("Signup"
|
41 |
if not new_username or not new_password or not new_email:
|
42 |
st.error("All fields are required for signup.")
|
43 |
return
|
@@ -56,14 +55,13 @@ def signup():
|
|
56 |
|
57 |
# Function to handle user login
|
58 |
def login():
|
59 |
-
st.title("Login")
|
60 |
st.markdown("<p style='font-size: 24px; font-weight: bold; margin-bottom: 20px; text-align: center;'>Login</p>", unsafe_allow_html=True)
|
61 |
st.markdown("<p style='text-align: center;'>Please enter your login details:</p>", unsafe_allow_html=True)
|
62 |
|
63 |
username = st.text_input("Username")
|
64 |
password = st.text_input("Password", type="password")
|
65 |
|
66 |
-
if st.button("Login"
|
67 |
if not username or not password:
|
68 |
st.error("Username and password are required for login.")
|
69 |
return
|
|
|
29 |
|
30 |
# Function to handle user signup
|
31 |
def signup():
|
|
|
32 |
st.markdown("<p style='font-size: 24px; font-weight: bold; margin-bottom: 20px; text-align: center;'>Signup</p>", unsafe_allow_html=True)
|
33 |
st.markdown("<p style='text-align: center;'>Please fill in the details to sign up:</p>", unsafe_allow_html=True)
|
34 |
|
|
|
36 |
new_password = st.text_input("New Password", type="password")
|
37 |
new_email = st.text_input("Email")
|
38 |
|
39 |
+
if st.button("Signup"):
|
40 |
if not new_username or not new_password or not new_email:
|
41 |
st.error("All fields are required for signup.")
|
42 |
return
|
|
|
55 |
|
56 |
# Function to handle user login
|
57 |
def login():
|
|
|
58 |
st.markdown("<p style='font-size: 24px; font-weight: bold; margin-bottom: 20px; text-align: center;'>Login</p>", unsafe_allow_html=True)
|
59 |
st.markdown("<p style='text-align: center;'>Please enter your login details:</p>", unsafe_allow_html=True)
|
60 |
|
61 |
username = st.text_input("Username")
|
62 |
password = st.text_input("Password", type="password")
|
63 |
|
64 |
+
if st.button("Login"):
|
65 |
if not username or not password:
|
66 |
st.error("Username and password are required for login.")
|
67 |
return
|