@@ -219,7 +219,7 @@ def create_from_url(cls, client: "labelbox.Client", model_run_id: str,
219
219
"fileUrl" : url ,
220
220
"modelRunId" : model_run_id ,
221
221
'name' : name
222
- })["modelErrorAnalysisPredictionImport " ])
222
+ })["createModelErrorAnalysisPredictionImport " ])
223
223
else :
224
224
raise ValueError (f"Url { url } is not reachable" )
225
225
@@ -252,11 +252,11 @@ def from_name(cls, client: "labelbox.Client", model_run_id: str,
252
252
response = response ["modelErrorAnalysisPredictionImport" ]
253
253
if as_json :
254
254
return response
255
- return cls (client , response [ "modelErrorAnalysisPredictionImport" ] )
255
+ return cls (client , response )
256
256
257
257
@classmethod
258
258
def _get_url_mutation (cls ) -> str :
259
- return """mutation createMeaPredictionImportPyApi ($modelRunId : ID!, $name: String!, $fileUrl: String!) {
259
+ return """mutation createMEAPredictionImportPyApi ($modelRunId : ID!, $name: String!, $fileUrl: String!) {
260
260
createModelErrorAnalysisPredictionImport(data: {
261
261
modelRunId: $modelRunId
262
262
name: $name
@@ -266,7 +266,7 @@ def _get_url_mutation(cls) -> str:
266
266
267
267
@classmethod
268
268
def _get_file_mutation (cls ) -> str :
269
- return """mutation createMeaPredictionImportPyApi ($modelRunId : ID!, $name: String!, $file: Upload!, $contentLength: Int!) {
269
+ return """mutation createMEAPredictionImportPyApi ($modelRunId : ID!, $name: String!, $file: Upload!, $contentLength: Int!) {
270
270
createModelErrorAnalysisPredictionImport(data: {
271
271
modelRunId: $modelRunId name: $name filePayload: { file: $file, contentLength: $contentLength}
272
272
}) {%s}
@@ -406,7 +406,7 @@ def from_name(cls, client: "labelbox.Client", project_id: str,
406
406
response = response ["modelAssistedLabelingPredictionImport" ]
407
407
if as_json :
408
408
return response
409
- return cls (client , response [ "modelAssistedLabelingPredictionImport" ] )
409
+ return cls (client , response )
410
410
411
411
@classmethod
412
412
def _get_url_mutation (cls ) -> str :
0 commit comments