Skip to content

Commit

Permalink
fix info write
Browse files Browse the repository at this point in the history
  • Loading branch information
thearyadev committed Feb 16, 2024
1 parent 4ba6558 commit 9f62305
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion classifier/train.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ def main() -> int:
shutil.copy(Path("./classifier/model.py"), model_dir / "frozen_model.py")

with open(model_dir / "detail", "w+") as file:
file.writelines(info_file)
file.write("\n".join(info_file))

with open(model_dir / "__init__.py", "w+") as file:
file.write("from .frozen_model import transformer, NNModel as FrozenNeuralNetworkModel")
Expand Down

0 comments on commit 9f62305

Please sign in to comment.