Closed sweep-nightly[bot] closed 10 months ago
src/main.py
. ✓
Sandbox logs for https://github.com/sweepai/evals/commit/7a0e73c7322bb5e768e759e4b59b3cdf8347b506
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
[X] Ran sandbox for src/main.py
. ✗
Run `src/main.py` through the sandbox.
[X] Ran sandbox for src/api.py
. ✓
Sandbox logs for https://github.com/sweepai/evals/commit/7cf31a863bab21eb403f4d15ce467e4cd8ecf888
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 the model and making predictions.Summary
main.py
into aTrainer
classapi.py
to use theTrainer
class for loading the model and making predictionsFixes #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: