Spaces:
Sleeping
Sleeping
Update src/helper_functions.py
Browse files- src/helper_functions.py +2 -1
src/helper_functions.py
CHANGED
|
@@ -11,10 +11,11 @@ from datetime import datetime
|
|
| 11 |
import regex
|
| 12 |
import os
|
| 13 |
|
|
|
|
| 14 |
|
| 15 |
def check_password():
|
| 16 |
def password_entered():
|
| 17 |
-
if st.session_state["password"] ==
|
| 18 |
st.session_state["password_correct"] = True
|
| 19 |
del st.session_state["password"]
|
| 20 |
else:
|
|
|
|
| 11 |
import regex
|
| 12 |
import os
|
| 13 |
|
| 14 |
+
app_password = os.getenv("APP_PASSWORD")
|
| 15 |
|
| 16 |
def check_password():
|
| 17 |
def password_entered():
|
| 18 |
+
if st.session_state["password"] == app_password:
|
| 19 |
st.session_state["password_correct"] = True
|
| 20 |
del st.session_state["password"]
|
| 21 |
else:
|