zorazrw/odex

Hugging face call is deprecated

Closed this issue · 1 comments

neubig commented

I get this when using a codebase based on ODEX:

/Users/gneubig/work/gemini-benchmark/benchmarking/Code/verify.py:13: FutureWarning: load_metric is deprecated and will be removed in the next major version of datasets. Use 'evaluate.load' instead, from the new library 🤗 Evaluate: https://huggingface.co/docs/evaluate
  code_eval_metric = load_metric("code_eval")

Just fixed the metric loading warnings by using the evaluate.load function instead.