Spaces:
Running
Running
Update main.py
Browse files
main.py
CHANGED
@@ -379,7 +379,7 @@ def update_huggingface_dataset(username: str, score: float):
|
|
379 |
|
380 |
updated_ds = DatasetDict({'train': Dataset.from_pandas(df)})
|
381 |
logger.info(f"Dataset to push: {updated_ds}") # Log the dataset structure
|
382 |
-
|
383 |
logger.warning("Dataset push to hub is currently commented out. Uncomment the line above to enable leaderboard updates.") # REMINDER
|
384 |
logger.info("Dataset push simulated/attempted.")
|
385 |
return True
|
|
|
379 |
|
380 |
updated_ds = DatasetDict({'train': Dataset.from_pandas(df)})
|
381 |
logger.info(f"Dataset to push: {updated_ds}") # Log the dataset structure
|
382 |
+
updated_ds.push_to_hub(HF_DATASET_ID) # Uncomment this line to enable leaderboard updates
|
383 |
logger.warning("Dataset push to hub is currently commented out. Uncomment the line above to enable leaderboard updates.") # REMINDER
|
384 |
logger.info("Dataset push simulated/attempted.")
|
385 |
return True
|