MANIKANDAN A commited on
Commit
3691b02
·
1 Parent(s): 20c8dea

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -4
app.py CHANGED
@@ -42,7 +42,6 @@ def create_table():
42
  def signup_section():
43
 
44
  st.markdown(f"<p style='{heading_style}'>Signup</p>", unsafe_allow_html=True)
45
- st.markdown("<p style='text-align: center;'>Please fill in the details to sign up:</p>", unsafe_allow_html=True)
46
 
47
  new_username = st.text_input("New Username", key="new_username", help="Choose a unique username")
48
  new_password = st.text_input("New Password", type="password", key="new_password", help="Password should be at least 8 characters long")
@@ -69,8 +68,6 @@ def signup_section():
69
  def login_section():
70
 
71
  st.markdown(f"<p style='{heading_style}'>Login</p>", unsafe_allow_html=True)
72
- st.markdown("<p style='text-align: center;'>Please enter your login details:</p>", unsafe_allow_html=True)
73
-
74
  username = st.text_input("Username", key="login_username", help="Enter your username")
75
  password = st.text_input("Password", type="password", key="login_password",help="Enter your password")
76
 
@@ -114,7 +111,7 @@ def main():
114
  elif selected_tab == "Generate Caption":
115
  # Check if a user is logged in before accessing the caption generation feature
116
  if hasattr(st.session_state, "username"):
117
- st.title("Generate Caption")
118
  st.markdown("Upload an image to generate a caption:")
119
 
120
  with st.sidebar:
 
42
  def signup_section():
43
 
44
  st.markdown(f"<p style='{heading_style}'>Signup</p>", unsafe_allow_html=True)
 
45
 
46
  new_username = st.text_input("New Username", key="new_username", help="Choose a unique username")
47
  new_password = st.text_input("New Password", type="password", key="new_password", help="Password should be at least 8 characters long")
 
68
  def login_section():
69
 
70
  st.markdown(f"<p style='{heading_style}'>Login</p>", unsafe_allow_html=True)
 
 
71
  username = st.text_input("Username", key="login_username", help="Enter your username")
72
  password = st.text_input("Password", type="password", key="login_password",help="Enter your password")
73
 
 
111
  elif selected_tab == "Generate Caption":
112
  # Check if a user is logged in before accessing the caption generation feature
113
  if hasattr(st.session_state, "username"):
114
+ st.markdown(f"<p style='{heading_style}'>Generate Caption</p>", unsafe_allow_html=True)
115
  st.markdown("Upload an image to generate a caption:")
116
 
117
  with st.sidebar: