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


##########
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
+except ImportError:
+  TFAutoModel = Any

Review Comment:
   already imported on line 27



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