Open sweep-nightly[bot] opened 10 months ago
src/main.py
. β
Sandbox logs for https://github.com/sweepai/evals/commit/52cb808b1b8bc91787d586dd565b782319ec01c4
trunk fmt src/main.py || exit 0
1/2 ββ Formatted src/main.py Re-checking autofixed files... Checked 1 file β No issues Run trunk upgrade to upgrade 1 linter
trunk check --fix --filter=-ruff --print-failures src/main.py
2/2 βChecked 1 file β No issues
src/api.py
. β
Sandbox logs for https://github.com/sweepai/evals/commit/b31fc724747dc0cd6fdae265be435aa36b06ab4a
trunk fmt src/api.py || exit 0
1/2 ββ Formatted src/api.py Re-checking autofixed files... β Formatted src/api.py Re-checking autofixed files... Checked 1 file β No issues Run trunk upgrade to upgrade 1 linter
trunk check --fix --filter=-ruff --print-failures src/api.py
2/2 βChecked 1 file β No issues
Description
This pull request refactors the training loop in the
main.py
file into a class calledTrainer
. It also updates theapi.py
file to use theTrainer
class for loading and predicting with the model. Additionally, the code is formatted to adhere to PEP 8 style guidelines.Summary
main.py
into aTrainer
classapi.py
to use theTrainer
class for loading and predicting with the modelFixes #6.
π Latest improvements to Sweep:
rope
library to refactor Python! Check out Large Language Models are Bad at Refactoring Code. To have Sweep refactor your code, trysweep: Refactor <your_file>.py
!π‘ To get Sweep to edit this pull request, you can: