Wajahat698 commited on
Commit
f041efd
·
verified ·
1 Parent(s): 3b80f8f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -1252,6 +1252,8 @@ def update_message_usage(wix_user_id):
1252
 
1253
  # Main interface
1254
  if st.session_state.get("wix_user_id") and st.session_state.get("email"):
 
 
1255
  retrieve_user_data(st.session_state["wix_user_id"]) # Fetch and display saved data for the user
1256
  display_saved_trustbuilders()
1257
 
@@ -1261,8 +1263,6 @@ if st.session_state.get("wix_user_id") and st.session_state.get("email"):
1261
  time.sleep(3)
1262
  welcome_placeholder.empty()
1263
 
1264
- # Initialize the user's message limit and usage from Firebase
1265
- initialize_wix_only_user(st.session_state["wix_user_id"], st.session_state["email"])
1266
 
1267
 
1268
  # Input field for chatbot interaction
 
1252
 
1253
  # Main interface
1254
  if st.session_state.get("wix_user_id") and st.session_state.get("email"):
1255
+ initialize_wix_only_user(st.session_state["wix_user_id"], st.session_state["email"])
1256
+
1257
  retrieve_user_data(st.session_state["wix_user_id"]) # Fetch and display saved data for the user
1258
  display_saved_trustbuilders()
1259
 
 
1263
  time.sleep(3)
1264
  welcome_placeholder.empty()
1265
 
 
 
1266
 
1267
 
1268
  # Input field for chatbot interaction