Skip to content

Commit 1bf97cb

Browse files
ELin2025claude
andcommitted
fix(frontend): fix HuggingFace field visibility and add missing preview sample
Fix inverted fallback for systemPrompt/maxNewTokens/temperature: these fields now correctly hide when no task is selected, matching the behavior of all other HuggingFace fields. Add missing image-text-to-text entry to huggingFaceTaskPreviewSamples so it no longer falls through to the generic text fallback. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 0dfe9ed commit 1bf97cb

1 file changed

Lines changed: 10 additions & 1 deletion

File tree

frontend/src/app/workspace/component/property-editor/operator-property-edit-frame/operator-property-edit-frame.component.ts

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,6 +239,15 @@ export class OperatorPropertyEditFrameComponent implements OnInit, OnChanges, On
239239
body: "Uploaded audio returns classification labels.",
240240
assetSrc: "assets/sample-audio.wav",
241241
},
242+
"image-text-to-text": {
243+
kind: "image",
244+
inputLabel: "Image + text prompt",
245+
outputLabel: "Generated text",
246+
title: "Image-text-to-text preview",
247+
body: "The model reads an image and a text prompt to produce a response.",
248+
outputBody: "The image shows a superhero leaping across rooftops at sunset.",
249+
assetSrc: "assets/sample-image.png",
250+
},
242251
"image-classification": {
243252
kind: "image",
244253
inputLabel: "Image input",
@@ -982,7 +991,7 @@ export class OperatorPropertyEditFrameComponent implements OnInit, OnChanges, On
982991
...mappedField.expressions,
983992
hide: (field: FormlyFieldConfig) => {
984993
const t = getSelectedTask(field);
985-
return t !== "text-generation" && t !== undefined;
994+
return t !== "text-generation";
986995
},
987996
};
988997
}

0 commit comments

Comments
 (0)