Skip to content

Commit 6ccd1a5

Browse files
committed
forgot file
1 parent d65a393 commit 6ccd1a5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

labelbox/schema/annotation_import.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ def refresh(self) -> None:
126126
"""Synchronizes values of all fields with the database.
127127
"""
128128
cls = type(self)
129-
res = cls._from_name(self.client, self.parent_id, self.name, raw=True)
129+
res = cls.from_name(self.client, self.parent_id, self.name)
130130
self._set_field_values(res)
131131

132132
@classmethod
@@ -259,7 +259,7 @@ def from_name(
259259
if response is None:
260260
raise labelbox.exceptions.ResourceNotFoundError(MEAPredictionImport, params)
261261

262-
return response
262+
return response["modelErrorAnalysisPredictionImport"]
263263

264264

265265
class MALPredictionImport(AnnotationImport):
@@ -310,4 +310,4 @@ def from_name(
310310
if response is None:
311311
raise labelbox.exceptions.ResourceNotFoundError(MALPredictionImport, params)
312312

313-
return response
313+
return response["modelAssistedLabelingPredictionImport"]

0 commit comments

Comments
 (0)