liferoad commented on code in PR #36593:
URL: https://github.com/apache/beam/pull/36593#discussion_r2455473830


##########
sdks/python/apache_beam/ml/inference/huggingface_inference.py:
##########
@@ -715,7 +705,7 @@ def run_inference(
     """
     inference_args = {} if not inference_args else inference_args
     predictions = self._inference_fn(batch, pipeline, inference_args)
-    return _convert_to_result(batch, predictions)
+    return utils._convert_to_result(batch, predictions)

Review Comment:
   This actually fixes the bug. :)



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to