Skip to content

Commit

Permalink
Added foundation model to Model table
Browse files Browse the repository at this point in the history
  • Loading branch information
kshitijrajsharma committed Oct 14, 2024
1 parent 77c9889 commit 27a32ae
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion backend/core/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,11 @@ class Label(models.Model):


class Model(models.Model):
FOUNDATION_MODEL_CHOICES = (
("RAMP", "RAMP"),
("YOLO", "YOLO"),
)

class ModelStatus(models.IntegerChoices):
ARCHIVED = 1
PUBLISHED = 0
Expand All @@ -59,7 +64,10 @@ class ModelStatus(models.IntegerChoices):
description = models.TextField(max_length=500, null=True, blank=True)
user = models.ForeignKey(OsmUser, to_field="osm_id", on_delete=models.CASCADE)
published_training = models.PositiveIntegerField(null=True, blank=True)
status = models.IntegerField(default=-1, choices=ModelStatus.choices) #
status = models.IntegerField(default=-1, choices=ModelStatus.choices)
foundation_model = models.CharField(
choices=FOUNDATION_MODEL_CHOICES, default="RAMP", max_length=10
)


class Training(models.Model):
Expand Down

0 comments on commit 27a32ae

Please sign in to comment.