Skip to content

Commit

Permalink
Do not use deprecated list_files_info (#133)
Browse files Browse the repository at this point in the history
  • Loading branch information
Wauplin authored Mar 28, 2024
1 parent e941a55 commit 7f25cce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lighteval/logging/evaluation_tracker.py
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ def details_to_hub(

paths_to_check = [os.path.basename(results_file_path)]
try:
checked_paths = list(self.api.list_files_info(repo_id=repo_id, paths=paths_to_check, repo_type="dataset"))
checked_paths = list(self.api.get_paths_info(repo_id=repo_id, paths=paths_to_check, repo_type="dataset"))
except Exception:
checked_paths = []

Expand Down

0 comments on commit 7f25cce

Please sign in to comment.