Spaces:
Runtime error
Runtime error
Commit
·
1181bf8
1
Parent(s):
b7fc5a2
Update app.py
Browse filescomplete removal
app.py
CHANGED
@@ -13,23 +13,7 @@ st.set_page_config(page_title="PROFESSOR AI - SPLITTER", page_icon=":bar_chart:"
|
|
13 |
|
14 |
placeholder = st.empty()
|
15 |
|
16 |
-
# --- USER AUTHENTICATION ---
|
17 |
-
'''users = db.fetch_all_users()
|
18 |
|
19 |
-
usernames = [user["key"] for user in users]
|
20 |
-
names = [user["name"] for user in users]
|
21 |
-
hashed_passwords = [user["password"] for user in users]
|
22 |
-
|
23 |
-
authenticator = stauth.Authenticate(names, usernames, hashed_passwords,"copo_generator", "abcdef", cookie_expiry_days=30)
|
24 |
-
|
25 |
-
name, authentication_status, username = authenticator.login("Login", "main")
|
26 |
-
|
27 |
-
if authentication_status == False:
|
28 |
-
st.error("Username/password is incorrect")
|
29 |
-
|
30 |
-
if authentication_status == None:
|
31 |
-
st.warning("Please enter your username and password")
|
32 |
-
'''
|
33 |
authentication_status=True
|
34 |
|
35 |
if authentication_status:
|
|
|
13 |
|
14 |
placeholder = st.empty()
|
15 |
|
|
|
|
|
16 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
17 |
authentication_status=True
|
18 |
|
19 |
if authentication_status:
|