Skip to content

Commit ce4831c

Browse files
committed
fix: avoid empty data
1 parent b0f7948 commit ce4831c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

bigcodebench/data/bigcodebench.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ def _ready_bigcodebench_path(mini=False, noextreme=False, version="default") ->
2929
dataset = load_dataset(BIGCODEBENCH_HF, split=BIGCODEBENCH_VERSION)
3030
make_cache(url, dataset, path)
3131
except:
32+
if os.path.exists(path):
33+
os.remove(path)
3234
make_cache(url, None, path, gh=True)
3335

3436
return path

0 commit comments

Comments
 (0)