Unverified Commit be40299e authored by Leo Gao's avatar Leo Gao Committed by GitHub
Browse files

Merge pull request #252 from bigscience-workshop/thomas/fix_best_download_version_1

Best download fix
parents ed6931e7 2d9fc256
...@@ -35,7 +35,7 @@ class Asdiv(Task): ...@@ -35,7 +35,7 @@ class Asdiv(Task):
url = "https://github.com/chaochun/nlu-asdiv-dataset/archive/55790e5270bb91ccfa5053194b25732534696b50.zip" url = "https://github.com/chaochun/nlu-asdiv-dataset/archive/55790e5270bb91ccfa5053194b25732534696b50.zip"
checksum = "8f1fe4f6d5f170ec1e24ab78c244153c14c568b1bb2b1dad0324e71f37939a2d" checksum = "8f1fe4f6d5f170ec1e24ab78c244153c14c568b1bb2b1dad0324e71f37939a2d"
zip_path = self.DATASET_PATH / "55790e5270bb91ccfa5053194b25732534696b50.zip" zip_path = self.DATASET_PATH / "55790e5270bb91ccfa5053194b25732534696b50.zip"
download_file(url, str(zip_path), checksum) download_file(url, local_file=str(zip_path), expected_checksum=checksum)
with ZipFile(zip_path, "r") as zip: with ZipFile(zip_path, "r") as zip:
zip.extractall(self.DATASET_PATH) zip.extractall(self.DATASET_PATH)
os.remove(zip_path) os.remove(zip_path)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment