Jofthomas commited on
Commit
73fc334
·
verified ·
1 Parent(s): 6b849a6

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +1 -1
main.py CHANGED
@@ -235,7 +235,7 @@ def update_huggingface_dataset(username: str, score: float):
235
 
236
  updated_ds = DatasetDict({'train': Dataset.from_pandas(df)})
237
  logger.info(f"Dataset to push: {updated_ds}") # Log the dataset structure
238
- # updated_ds.push_to_hub(HF_DATASET_ID) # Token should be picked up from env or login
239
  logger.warning("Dataset push to hub is currently commented out. Uncomment the line above to enable leaderboard updates.") # REMINDER
240
  logger.info("Dataset push simulated/attempted.")
241
  return True
 
235
 
236
  updated_ds = DatasetDict({'train': Dataset.from_pandas(df)})
237
  logger.info(f"Dataset to push: {updated_ds}") # Log the dataset structure
238
+ updated_ds.push_to_hub(HF_DATASET_ID) # Token should be picked up from env or login
239
  logger.warning("Dataset push to hub is currently commented out. Uncomment the line above to enable leaderboard updates.") # REMINDER
240
  logger.info("Dataset push simulated/attempted.")
241
  return True