derrickaw commented on code in PR #38110:
URL: https://github.com/apache/beam/pull/38110#discussion_r3202259068


##########
sdks/python/apache_beam/ml/inference/huggingface_inference.py:
##########
@@ -32,7 +32,11 @@
 import torch
 from transformers import AutoModel
 from transformers import Pipeline
-from transformers import TFAutoModel
+
+try:
+  from transformers import TFAutoModel

Review Comment:
   I was hitting a test failure at one point that required it. Its a relic now 
and has been removed. Thanks



-- 
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