rwitz commited on
Commit
c25a9e9
·
verified ·
1 Parent(s): 43c28d5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -144,8 +144,10 @@ async def user_ask(state, chatbot1, chatbot2, textbox):
144
  if len(user_input) > 200:
145
  user_input = user_input[:200] # Limit user input to 200 characters
146
 
 
 
147
  # Updating state with the current ELO ratings
148
- state["elo_ratings"] = get_user_elo_ratings()
149
  if "history" not in state:
150
  state.update({'history': [[],[]]})
151
  state["history"][0].extend([
 
144
  if len(user_input) > 200:
145
  user_input = user_input[:200] # Limit user input to 200 characters
146
 
147
+ collection = init_database() # Initialize the collection object
148
+
149
  # Updating state with the current ELO ratings
150
+ state["elo_ratings"] = get_user_elo_ratings(collection)
151
  if "history" not in state:
152
  state.update({'history': [[],[]]})
153
  state["history"][0].extend([