LohithGummi commited on
Commit
aa0cfe3
·
verified ·
1 Parent(s): 8fbe2bb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -417,7 +417,7 @@ def login_page():
417
  st.session_state.logged_in = True
418
  st.session_state.email = email
419
  st.success("Login successful! Redirecting to Chatbot...")
420
- #main()
421
  else:
422
  st.error("Invalid email or password.")
423
 
@@ -479,7 +479,7 @@ def main():
479
  # Check if the user is logged in
480
  if "logged_in" in st.session_state and st.session_state["logged_in"]:
481
  # Show chatbot page if logged in
482
- chatbot_page()
483
  else:
484
  # Show login page if not logged in
485
  login_page()
 
417
  st.session_state.logged_in = True
418
  st.session_state.email = email
419
  st.success("Login successful! Redirecting to Chatbot...")
420
+ st.experimental_rerun()
421
  else:
422
  st.error("Invalid email or password.")
423
 
 
479
  # Check if the user is logged in
480
  if "logged_in" in st.session_state and st.session_state["logged_in"]:
481
  # Show chatbot page if logged in
482
+ chatbot_interface()
483
  else:
484
  # Show login page if not logged in
485
  login_page()