Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -40,7 +40,6 @@ def update_elo_rating(new_rating):
|
|
40 |
updated_dataset = elo_ratings.map(update_rating)
|
41 |
|
42 |
# Convert updated dataset to a dictionary for pushing
|
43 |
-
updated_dataset=DatasetDict({'train':updated_dataset})
|
44 |
updated_dataset.push_to_hub("rwitz/mistral-elo-ratings",token=os.environ.get("huggingface_token"))
|
45 |
if response.status_code == 200:
|
46 |
print("Successfully updated the dataset")
|
|
|
40 |
updated_dataset = elo_ratings.map(update_rating)
|
41 |
|
42 |
# Convert updated dataset to a dictionary for pushing
|
|
|
43 |
updated_dataset.push_to_hub("rwitz/mistral-elo-ratings",token=os.environ.get("huggingface_token"))
|
44 |
if response.status_code == 200:
|
45 |
print("Successfully updated the dataset")
|