Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -130,7 +130,7 @@ def update_ratings(state, winner_index):
|
|
130 |
|
131 |
elo_ratings = update_elo_ratings(elo_ratings, winner, loser)
|
132 |
update_elo_rating(elo_ratings, winner, loser)
|
133 |
-
return [('Winner: ', winner.replace('rwitz/','').replace('-lora','')), ('Loser: ', lose.replace('rwitz/','').replace('-lora','')
|
134 |
def vote_up_model(state, chatbot,chatbot2):
|
135 |
update_message = update_ratings(state, 0)
|
136 |
chatbot.append(update_message[0])
|
|
|
130 |
|
131 |
elo_ratings = update_elo_ratings(elo_ratings, winner, loser)
|
132 |
update_elo_rating(elo_ratings, winner, loser)
|
133 |
+
return [('Winner: ', winner.replace('rwitz/','').replace('-lora','')), ('Loser: ', lose.replace('rwitz/','').replace('-lora',''))]
|
134 |
def vote_up_model(state, chatbot,chatbot2):
|
135 |
update_message = update_ratings(state, 0)
|
136 |
chatbot.append(update_message[0])
|