Skip to content

Commit

Permalink
Add --force_download for getting results (#23)
Browse files Browse the repository at this point in the history
  • Loading branch information
ljvmiranda921 authored Aug 19, 2024
1 parent 95b51db commit 1bcc3a1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/get_results.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,14 @@ def get_args():
parser.add_argument("--dataset", type=str, default="aya-rm-multilingual/eval-results", help="HuggingFace dataset that stores the eval results.")
parser.add_argument("--langs", nargs="*", required=False, type=str, help="If set, will only show the results for the particular language codes provided.")
parser.add_argument("--show_subsets", action="store_true", help="If set, will show subset results instead of per-category results.")
parser.add_argument("--force_download", action="store_true", help="If set, will redownload the dataset.")
# fmt: on
return parser.parse_args()


def main():
args = get_args()
dataset_dir = Path(snapshot_download(args.dataset, repo_type="dataset"))
dataset_dir = Path(snapshot_download(args.dataset, repo_type="dataset", force_download=args.force_download))
lang_folders = [d for d in dataset_dir.iterdir() if d.is_dir()]

if args.langs:
Expand Down

0 comments on commit 1bcc3a1

Please sign in to comment.