Skip to content

Commit ad3f8f8

Browse files
committed
fix bugs
1 parent f2cb018 commit ad3f8f8

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

nucleus/constants.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
# NUCLEUS_ENDPOINT = "https://api.scale.com/v1/nucleus"
2-
NUCLEUS_ENDPOINT = "http://localhost:3000/v1/nucleus"
1+
NUCLEUS_ENDPOINT = "https://api.scale.com/v1/nucleus"
32
ITEMS_KEY = "items"
43
ITEM_KEY = "item"
54
REFERENCE_ID_KEY = "reference_id"

nucleus/model.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
from typing import List, Optional, Dict, Union
22
from .dataset import Dataset
3-
from .prediction import BoxPrediction, PolygonPrediction
3+
from .prediction import (
4+
BoxPrediction,
5+
PolygonPrediction,
6+
SegmentationPrediction,
7+
)
48
from .model_run import ModelRun
59
from .constants import (
610
NAME_KEY,
@@ -25,7 +29,7 @@ def __init__(
2529
self._client = client
2630

2731
def __repr__(self):
28-
return f'Model(model_id={self.id}, name={self.name}, reference_id={self.reference_id}, metadata={self.metadata}, client={self._client})'
32+
return f"Model(model_id={self.id}, name={self.name}, reference_id={self.reference_id}, metadata={self.metadata}, client={self._client})"
2933

3034
def __eq__(self, other):
3135
return self.id == other.id

0 commit comments

Comments
 (0)