Skip to content

Commit

Permalink
feat: DIA-978: [BE] Deprecate S3-based Adala inference workflow (#5936)
Browse files Browse the repository at this point in the history
Removing the last of the S3-related code for Prompter. In this case,
some computed fields that provide the expected filenames on S3 for a
ModelRun. They are not used in either repo.
  • Loading branch information
matt-bernstein authored May 31, 2024
1 parent 0c67be0 commit b59fb98
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions label_studio/ml_models/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,19 +157,6 @@ class ModelRunStatus(models.TextChoices):

completed_at = models.DateTimeField(_('completed at'), null=True, default=None)

# todo may need to clean up in future
@property
def input_file_name(self):
return f'{self.project.id}_{self.model_version.pk}_{self.pk}/input.csv'

@property
def output_file_name(self):
return f'{self.project.id}_{self.model_version.pk}_{self.pk}/output.csv'

@property
def error_file_name(self):
return f'{self.project.id}_{self.model_version.pk}_{self.pk}/error.csv'

def delete_predictions(self):
"""
Deletes any predictions that have originated from a ModelRun
Expand Down

0 comments on commit b59fb98

Please sign in to comment.