This is an automated email from the ASF dual-hosted git repository.
github-merge-queue[bot] pushed a commit to branch
gh-readonly-queue/release/v1.2/pr-7315-9ef3744deb816c99d4f92e1dc9ed4c915c542040
in repository https://gitbox.apache.org/repos/asf/texera.git
commit ac9657db2797229e98ff30d8497e2ba980ae4fee
Author: github-actions[bot]
<41898282+github-actions[bot]@users.noreply.github.com>
AuthorDate: Thu Aug 13 05:21:39 2026 +0000
fix(HuggingFace, v1.2): drop unused TensorFlow import in sentiment analysis
codegen (#7315)
### What changes were proposed in this PR?
Automated backport of #6809 to `release/v1.2`.
Source: 2ae9a97363b8fb5f4c29fa8a7fa88fb7c8fbd27a ยท [automation
run](https://github.com/apache/texera/actions/runs/30962704982)
### Any related issues, documentation, discussions?
Backport of #6809. Originally linked #6794.
### How was this PR tested?
Release-branch CI runs on this branch once the build is fixed and this
PR is marked ready for review.
### Was this PR authored or co-authored using generative AI tooling?
No.
Co-authored-by: Kary Zheng <[email protected]>
Co-authored-by: Claude Opus 4.8 <[email protected]>
Co-authored-by: carloea2 <[email protected]>
Co-authored-by: Yicong Huang
<[email protected]>
Co-authored-by: Xuan Gu <[email protected]>
Co-authored-by: Xinyuan Lin <[email protected]>
---
.../amber/operator/huggingFace/HuggingFaceSentimentAnalysisOpDesc.scala | 1 -
1 file changed, 1 deletion(-)
diff --git
a/common/workflow-operator/src/main/scala/org/apache/texera/amber/operator/huggingFace/HuggingFaceSentimentAnalysisOpDesc.scala
b/common/workflow-operator/src/main/scala/org/apache/texera/amber/operator/huggingFace/HuggingFaceSentimentAnalysisOpDesc.scala
index 1d6cc7be9c..d60f1f33ea 100644
---
a/common/workflow-operator/src/main/scala/org/apache/texera/amber/operator/huggingFace/HuggingFaceSentimentAnalysisOpDesc.scala
+++
b/common/workflow-operator/src/main/scala/org/apache/texera/amber/operator/huggingFace/HuggingFaceSentimentAnalysisOpDesc.scala
@@ -61,7 +61,6 @@ class HuggingFaceSentimentAnalysisOpDesc extends
PythonOperatorDescriptor {
pyb"""from pytexera import *
|from transformers import pipeline
|from transformers import AutoModelForSequenceClassification
- |from transformers import TFAutoModelForSequenceClassification
|from transformers import AutoTokenizer, AutoConfig
|import numpy as np
|from scipy.special import softmax