We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 295dcca commit f5097afCopy full SHA for f5097af
scripts/compare-llama-bench.py
@@ -369,7 +369,6 @@ def valid_format(data_files: list[str]) -> bool:
369
try:
370
with open(data_file, "r", encoding="utf-8") as fp:
371
json.load(fp)
372
- continue
373
except Exception as e:
374
logger.debug(f'"{data_file}" is not a valid JSON file.', exc_info=e)
375
return False
@@ -404,8 +403,8 @@ def valid_format(data_files: list[str]) -> bool:
404
403
for data_file in data_files:
405
406
407
- csv.DictReader(fp)
408
+ for parsed in csv.DictReader(fp):
+ break
409
410
logger.debug(f'"{data_file}" is not a valid CSV file.', exc_info=e)
411
0 commit comments