Files changed (1) hide show
  1. app.py +12 -14
app.py CHANGED
@@ -61,20 +61,18 @@ def signup():
61
 
62
 
63
  def main():
64
- if "user" not in st.session_state:
65
- st.session_state["user"] = "visitor"
66
- if st.session_state["user"] == "logged":
67
- dashboard()
68
- elif st.session_state["user"] == "visitor":
69
- option = option_menu(
70
- menu_title="Authentication",
71
- options=["Login", "Signup"],
72
- )
73
-
74
- if option == "Login":
75
- login()
76
- elif option == "Signup":
77
- signup()
78
 
79
 
80
  main()
 
61
 
62
 
63
  def main():
64
+ if st.session_state["user"] == "visitor":
65
+ option = option_menu(
66
+ menu_title="Authentication",
67
+ options=["Login", "Signup"],
68
+ )
69
+
70
+ if option == "Login":
71
+ login()
72
+ elif option == "Signup":
73
+ signup()
74
+ elif st.session_state["user"] == "logged":
75
+ dashboard()
 
 
76
 
77
 
78
  main()