Skip to content

Commit

Permalink
fix: fine tuning check
Browse files Browse the repository at this point in the history
  • Loading branch information
okradze committed Mar 4, 2024
1 parent 9ffe77e commit ab65214
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/server/services/fine_tuning.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,8 @@ def check_fine_tuning(session: Session, id: UUID):
if fine_tuning_model.status == FineTuningStatus.COMPLETED.value:
fine_tuning_model.model_identifier = job.fine_tuned_model

if job.error:
fine_tuning_model.error = job.error
if job.error and job.error.error:
fine_tuning_model.error = job.error.error

session.commit()

Expand Down

0 comments on commit ab65214

Please sign in to comment.