Skip to content

Commit

Permalink
fix for data_report_dict not defined (#212)
Browse files Browse the repository at this point in the history
* fix for data_report_dict not defined

* Update files.py
  • Loading branch information
orangetin authored Nov 5, 2024
1 parent 2a96da0 commit 296f2a5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/together/utils/files.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ def check_file(
else:
report_dict["file_size"] = file_size

data_report_dict = {}
if file.suffix == ".jsonl":
report_dict["filetype"] = "jsonl"
data_report_dict = _check_jsonl(file)
Expand All @@ -72,6 +73,7 @@ def check_file(
report_dict["is_check_passed"] = False

report_dict.update(data_report_dict)

return report_dict


Expand Down

0 comments on commit 296f2a5

Please sign in to comment.