aglinxinyuan commented on code in PR #9518:
URL: https://github.com/apache/texera/pull/9518#discussion_r4649954783


##########
common/workflow-operator/src/test/scala/org/apache/texera/amber/operator/huggingFace/HuggingFaceInferenceOpDescSpec.scala:
##########
@@ -713,8 +714,9 @@ class HuggingFaceInferenceOpDescSpec extends AnyFlatSpec 
with Matchers {
 
   it should "report a clear error when a configured image/audio column is 
missing from the input table" in {
     val code = makeDesc().generatePythonCode()
-    code should include("Input Image Column '")
-    code should include("Input Audio Column '")
+    code should include("""media_kind = "image" if task in image_tasks""")
+    code should include(""""audio" if task in audio_only_tasks""")
+    code should include("Input {media_kind.title()} Column")

Review Comment:
   Done in 4b88e68ece — both messages are spelled out again, so the original 
`Input Image Column '` / `Input Audio Column '` assertions stand unchanged. The 
description now lists the four HuggingFace assertions that pin the generated 
code's shape and were rewritten with it.



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