Skip to content

Commit

Permalink
Fix formatting violation (#26385)
Browse files Browse the repository at this point in the history
  • Loading branch information
damccorm authored Apr 21, 2023
1 parent 818c2b4 commit 0924840
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,7 @@ def setup(self):
'ImageNetLabels.txt',
'https://storage.googleapis.com/download.tensorflow.org/data/ImageNetLabels.txt' # pylint: disable=line-too-long
)
self._imagenet_labels = numpy.array(
open(labels_path).read().splitlines())
self._imagenet_labels = numpy.array(open(labels_path).read().splitlines())

def process(self, element: PredictionResult) -> Iterable[str]:
predicted_class = numpy.argmax(element.inference, axis=-1)
Expand Down

0 comments on commit 0924840

Please sign in to comment.