File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 341341 },
342342 {
343343 "cell_type" : " code" ,
344- "execution_count" : 31 ,
344+ "execution_count" : null ,
345345 "metadata" : {},
346346 "outputs" : [],
347347 "source" : [
355355 " time=image_timestamp,\n " ,
356356 " )\n " ,
357357 " print(response)\n " ,
358- " if len(response[0][\" inferences \" ]) == 0:\n " ,
358+ " if len(response[0][\" inference_result \" ][ \" Inferences \" ]) == 0:\n " ,
359359 " print(\" Cannot get inference results.\" )\n " ,
360360 " raise Exception(\" Cannot get inference results.\" )\n " ,
361- " return response[0][\" inferences \" ]\n " ,
361+ " return response[0][\" inference_result \" ][ \" Inferences \" ]\n " ,
362362 " except Exception as error:\n " ,
363363 " raise Exception(str(error))"
364364 ]
Original file line number Diff line number Diff line change 340340 },
341341 {
342342 "cell_type" : " code" ,
343- "execution_count" : 31 ,
343+ "execution_count" : null ,
344344 "metadata" : {},
345345 "outputs" : [],
346346 "source" : [
354354 " time=image_timestamp,\n " ,
355355 " )\n " ,
356356 " print(response)\n " ,
357- " if len(response[0][\" inferences \" ]) == 0:\n " ,
357+ " if len(response[0][\" inference_result \" ][ \" Inferences \" ]) == 0:\n " ,
358358 " print(\" Cannot get inference results.\" )\n " ,
359359 " raise Exception(\" Cannot get inference results.\" )\n " ,
360- " return response[0][\" inferences \" ]\n " ,
360+ " return response[0][\" inference_result \" ][ \" Inferences \" ]\n " ,
361361 " except Exception as error:\n " ,
362362 " raise Exception(str(error))"
363363 ]
You can’t perform that action at this time.
0 commit comments