Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -53,8 +53,6 @@ import re
|
|
| 53 |
# Set up logging to suppress Streamlit warnings about experimental functions
|
| 54 |
logging.getLogger('streamlit').setLevel(logging.ERROR)
|
| 55 |
INITIAL_MESSAGE_LIMIT = 100
|
| 56 |
-
if "wix_user_id" not in st.session_state:
|
| 57 |
-
st.session_state["wix_user_id"] = str(uuid.uuid4())
|
| 58 |
|
| 59 |
|
| 60 |
# Initialize logging and load environment variables
|
|
@@ -1463,10 +1461,12 @@ def update_message_usage(wix_user_id):
|
|
| 1463 |
st.error("Error updating message usage.")
|
| 1464 |
|
| 1465 |
# Main interface
|
|
|
|
|
|
|
|
|
|
| 1466 |
initialize_user_session(st.session_state["wix_user_id"], st.session_state["email"])
|
| 1467 |
|
| 1468 |
retrieve_user_data(st.session_state["wix_user_id"]) # Fetch and display saved data for the user
|
| 1469 |
-
display_saved_trustbuilders()
|
| 1470 |
|
| 1471 |
user_name = extract_name(st.session_state["email"])
|
| 1472 |
welcome_placeholder = st.empty()
|
|
|
|
| 53 |
# Set up logging to suppress Streamlit warnings about experimental functions
|
| 54 |
logging.getLogger('streamlit').setLevel(logging.ERROR)
|
| 55 |
INITIAL_MESSAGE_LIMIT = 100
|
|
|
|
|
|
|
| 56 |
|
| 57 |
|
| 58 |
# Initialize logging and load environment variables
|
|
|
|
| 1461 |
st.error("Error updating message usage.")
|
| 1462 |
|
| 1463 |
# Main interface
|
| 1464 |
+
|
| 1465 |
+
st.session_state["wix_user_id"] = str(uuid.uuid4())
|
| 1466 |
+
|
| 1467 |
initialize_user_session(st.session_state["wix_user_id"], st.session_state["email"])
|
| 1468 |
|
| 1469 |
retrieve_user_data(st.session_state["wix_user_id"]) # Fetch and display saved data for the user
|
|
|
|
| 1470 |
|
| 1471 |
user_name = extract_name(st.session_state["email"])
|
| 1472 |
welcome_placeholder = st.empty()
|