Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -23,7 +23,7 @@ def read_elo_ratings():
|
|
23 |
except FileNotFoundError:
|
24 |
elo_ratings = {model: 1200 for model in chatbots.keys()}
|
25 |
return elo_ratings
|
26 |
-
|
27 |
# Write ELO ratings to file (thread-safe)
|
28 |
def write_elo_ratings(elo_ratings):
|
29 |
with open('elo_ratings.json', 'w') as file:
|
|
|
23 |
except FileNotFoundError:
|
24 |
elo_ratings = {model: 1200 for model in chatbots.keys()}
|
25 |
return elo_ratings
|
26 |
+
state['elo_ratings']=read_elo_ratings()
|
27 |
# Write ELO ratings to file (thread-safe)
|
28 |
def write_elo_ratings(elo_ratings):
|
29 |
with open('elo_ratings.json', 'w') as file:
|