MANIKANDAN A commited on
Commit
1b45c09
·
1 Parent(s): 7f1c645

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -4
app.py CHANGED
@@ -64,8 +64,7 @@ def signup_section():
64
  (new_username, new_password, new_email, role))
65
  st.success(SIGNUP_SUCCESS_MSG)
66
  st.balloons()
67
- # After successful signup, direct the user to the login page
68
- login_section()
69
  except sqlite3.IntegrityError:
70
  st.error(SIGNUP_ERROR_EXISTING_USER)
71
 
@@ -92,8 +91,6 @@ def login_section():
92
  st.session_state.username = username
93
  st.session_state.selected_tab = "Generate Caption"
94
  st.balloons()
95
- # After successful login, direct the user to the image caption prediction function
96
- generate_caption_section()
97
  else:
98
  st.error(LOGIN_ERROR_INVALID_CREDENTIALS)
99
  except sqlite3.OperationalError as e:
 
64
  (new_username, new_password, new_email, role))
65
  st.success(SIGNUP_SUCCESS_MSG)
66
  st.balloons()
67
+
 
68
  except sqlite3.IntegrityError:
69
  st.error(SIGNUP_ERROR_EXISTING_USER)
70
 
 
91
  st.session_state.username = username
92
  st.session_state.selected_tab = "Generate Caption"
93
  st.balloons()
 
 
94
  else:
95
  st.error(LOGIN_ERROR_INVALID_CREDENTIALS)
96
  except sqlite3.OperationalError as e: