Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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]
|