This is an automated email from the ASF dual-hosted git repository.

github-merge-queue[bot] pushed a commit to branch 
gh-readonly-queue/main/pr-8987-64818bc0012fd779875c3e9f6861a1cf1d9a6ab0
in repository https://gitbox.apache.org/repos/asf/texera.git

commit ee1deb75fb16f0ead6c715fa9e52465157f85c51
Author: Meng Wang <[email protected]>
AuthorDate: Wed Oct 14 23:39:19 2026 +0000

    fix(frontend): replace the Spider-Man sample image with an original drawing 
(#8987)
    
    ### What changes were proposed in this PR?
    
    Per #8983, `frontend/src/assets/sample-image.png`, the picture shown in
    the Hugging Face operator's task preview, depicts Spider-Man and has no
    recorded source. This replaces it with an original flat illustration
    drawn with PIL for this PR: a person leaping between two rooftops above
    a city skyline at sunset. The image is project-made, so it needs no
    `LICENSE` entry. The new file is a real PNG; the old one was a JPEG with
    a `.png` extension.
    
    The preview captions and labels that described the old picture now match
    the new one, and the token-classification example no longer uses "Peter
    Parker".
    
    `sample-audio.wav` and `sample-video.mp4` are unchanged. Their author
    confirmed in the review of #5568 that they are self-created.
    
    ### Any related issues, documentation, discussions?
    
    Closes #8983. Part of #8800.
    
    ### How was this PR tested?
    
    Updated the one spec assertion on the image-classification labels.
    `operator-property-edit-frame.component.spec.ts` passes locally and
    fails with the old value. A repo-wide grep finds no remaining Spider-Man
    references.
    
    ### Was this PR authored or co-authored using generative AI tooling?
    
    Generated-by: Claude Code (claude-opus-5-5)
---
 .../operator-property-edit-frame.component.spec.ts |   2 +-
 .../operator-property-edit-frame.component.ts      |  18 +++++++++---------
 frontend/src/assets/sample-image.png               | Bin 101737 -> 21646 bytes
 3 files changed, 10 insertions(+), 10 deletions(-)

diff --git 
a/frontend/src/app/workspace/component/property-editor/operator-property-edit-frame/operator-property-edit-frame.component.spec.ts
 
b/frontend/src/app/workspace/component/property-editor/operator-property-edit-frame/operator-property-edit-frame.component.spec.ts
index dbb5dccbff..fbdf39213c 100644
--- 
a/frontend/src/app/workspace/component/property-editor/operator-property-edit-frame/operator-property-edit-frame.component.spec.ts
+++ 
b/frontend/src/app/workspace/component/property-editor/operator-property-edit-frame/operator-property-edit-frame.component.spec.ts
@@ -1150,7 +1150,7 @@ describe("OperatorPropertyEditFrameComponent", () => {
     fixture.detectChanges();
     const preview = component.huggingFaceTaskPreview!;
     expect(preview.assetSrc).toBe("assets/sample-image.png");
-    expect(preview.pills).toEqual(["superhero", "cityscape", "action"]);
+    expect(preview.pills).toEqual(["parkour", "cityscape", "action"]);
     expect(preview.inputLabel).toBe("Image input");
     expect(preview.outputLabel).toBe("Predicted labels");
   });
diff --git 
a/frontend/src/app/workspace/component/property-editor/operator-property-edit-frame/operator-property-edit-frame.component.ts
 
b/frontend/src/app/workspace/component/property-editor/operator-property-edit-frame/operator-property-edit-frame.component.ts
index f9c2f6f6c5..17101bc598 100644
--- 
a/frontend/src/app/workspace/component/property-editor/operator-property-edit-frame/operator-property-edit-frame.component.ts
+++ 
b/frontend/src/app/workspace/component/property-editor/operator-property-edit-frame/operator-property-edit-frame.component.ts
@@ -259,7 +259,7 @@ export class OperatorPropertyEditFrameComponent implements 
OnInit, OnChanges, On
       kind: "image",
       inputLabel: "Text prompt",
       outputLabel: "Generated image",
-      title: "Comic-style city action scene",
+      title: "Illustrated rooftop leap at sunset",
       body: "Prompt becomes a generated image preview.",
       assetSrc: "assets/sample-image.png",
     },
@@ -317,7 +317,7 @@ export class OperatorPropertyEditFrameComponent implements 
OnInit, OnChanges, On
       outputLabel: "Generated text",
       title: "Image-text-to-text preview",
       body: "The model reads an image and a text prompt to produce a 
response.",
-      outputBody: "The image shows a superhero leaping across rooftops at 
sunset.",
+      outputBody: "The image shows a person leaping across rooftops at 
sunset.",
       assetSrc: "assets/sample-image.png",
     },
     "image-classification": {
@@ -325,9 +325,9 @@ export class OperatorPropertyEditFrameComponent implements 
OnInit, OnChanges, On
       inputLabel: "Image input",
       outputLabel: "Predicted labels",
       title: "Image classification preview",
-      body: "The model assigns labels such as superhero, city, or action 
scene.",
+      body: "The model assigns labels such as parkour, city, or action scene.",
       assetSrc: "assets/sample-image.png",
-      pills: ["superhero", "cityscape", "action"],
+      pills: ["parkour", "cityscape", "action"],
     },
     "object-detection": {
       kind: "image",
@@ -353,7 +353,7 @@ export class OperatorPropertyEditFrameComponent implements 
OnInit, OnChanges, On
       outputLabel: "Caption text",
       title: "Captioning preview",
       body: "The model turns an uploaded image into a textual description.",
-      outputBody: "A superhero leaps above a dense downtown skyline at 
sunset.",
+      outputBody: "A person leaps between rooftops above a downtown skyline at 
sunset.",
       assetSrc: "assets/sample-image.png",
     },
     "visual-question-answering": {
@@ -362,7 +362,7 @@ export class OperatorPropertyEditFrameComponent implements 
OnInit, OnChanges, On
       outputLabel: "Answer text",
       title: "Visual question answering preview",
       body: "The model reads the image and answers the user question.",
-      outputBody: "Spider-Man is jumping over a city skyline.",
+      outputBody: "A person is jumping between two rooftops.",
       assetSrc: "assets/sample-image.png",
     },
     "document-question-answering": {
@@ -381,7 +381,7 @@ export class OperatorPropertyEditFrameComponent implements 
OnInit, OnChanges, On
       title: "Zero-shot image labeling preview",
       body: "Candidate labels are scored against the uploaded image.",
       assetSrc: "assets/sample-image.png",
-      pills: ["superhero", "sports", "travel"],
+      pills: ["parkour", "sports", "travel"],
     },
     "text-generation": {
       kind: "text",
@@ -404,8 +404,8 @@ export class OperatorPropertyEditFrameComponent implements 
OnInit, OnChanges, On
       inputLabel: "Text input",
       outputLabel: "Tagged spans",
       title: "Token classification preview",
-      body: "Peter Parker visited New York yesterday.",
-      pills: ["Peter Parker: PERSON", "New York: LOCATION"],
+      body: "Maya Chen visited New York yesterday.",
+      pills: ["Maya Chen: PERSON", "New York: LOCATION"],
     },
     "question-answering": {
       kind: "text",
diff --git a/frontend/src/assets/sample-image.png 
b/frontend/src/assets/sample-image.png
index c28d120ab7..c7b8580a8b 100644
Binary files a/frontend/src/assets/sample-image.png and 
b/frontend/src/assets/sample-image.png differ

Reply via email to