Spaces:
Sleeping
Sleeping
Update app.py
#3
by
CosmoAI
- opened
app.py
CHANGED
@@ -61,20 +61,18 @@ def signup():
|
|
61 |
|
62 |
|
63 |
def main():
|
64 |
-
|
65 |
-
|
66 |
-
|
67 |
-
|
68 |
-
|
69 |
-
|
70 |
-
|
71 |
-
|
72 |
-
|
73 |
-
|
74 |
-
|
75 |
-
|
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()
|