rwitz commited on
Commit
4f778fa
1 Parent(s): fe00377

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -136,7 +136,7 @@ async def chat_with_bots(user_input, state):
136
  get_bot_response(bot2_adapter, user_input, state, 1)
137
  )
138
 
139
- return bot1_response, bot2_response
140
  def update_ratings(state, winner_index, collection):
141
  elo_ratings = get_user_elo_ratings(collection)
142
  winner_adapter = state['last_bots'][winner_index]
 
136
  get_bot_response(bot2_adapter, user_input, state, 1)
137
  )
138
 
139
+ return bot1_response.replace("<|im_end|>",""), bot2_response.replace("<|im_end|>","")
140
  def update_ratings(state, winner_index, collection):
141
  elo_ratings = get_user_elo_ratings(collection)
142
  winner_adapter = state['last_bots'][winner_index]