Unverified Commit feee4ed4 authored by sdtblck's avatar sdtblck Committed by GitHub
Browse files

Merge pull request #216 from EleutherAI/fix_download_if_exists

fix file download for existing files
parents 49dc058d 031677b6
...@@ -29,7 +29,7 @@ class MultilingualLAMBADA(lambada.LAMBADA): ...@@ -29,7 +29,7 @@ class MultilingualLAMBADA(lambada.LAMBADA):
f = f"data/lambada/lambada_test_{self.LANG}.jsonl" f = f"data/lambada/lambada_test_{self.LANG}.jsonl"
url = f"http://eaidata.bmk.sh/data/lambada_test_{self.LANG}.jsonl" url = f"http://eaidata.bmk.sh/data/lambada_test_{self.LANG}.jsonl"
try: try:
if not os.path.exists(): if not os.path.exists(f):
download_file( download_file(
url, url,
f, f,
......
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