浏览代码

Feat: Add the Experimental text to the option of the large model of the Image2text type of LayoutRecognizeItem (#5495)

### What problem does this PR solve?
Feat: Add the Experimental text to the option of the large model of the
Image2text type of LayoutRecognizeItem

### Type of change


- [x] New Feature (non-breaking change which adds functionality)
tags/v0.17.0
balibabu 8 个月前
父节点
当前提交
6a71314d70
没有帐户链接到提交者的电子邮件
共有 1 个文件被更改,包括 19 次插入2 次删除
  1. 19
    2
      web/src/components/layout-recognize.tsx

+ 19
- 2
web/src/components/layout-recognize.tsx 查看文件

@@ -20,7 +20,24 @@ const LayoutRecognize = () => {
value: x,
}));

return [...list, ...allOptions[LlmModelType.Image2text]];
const image2TextList = allOptions[LlmModelType.Image2text].map((x) => {
return {
...x,
options: x.options.map((y) => {
return {
...y,
label: (
<div className="flex justify-between items-center gap-2">
{y.label}
<span className="text-red-500 text-sm">Experimental</span>
</div>
),
};
}),
};
});

return [...list, ...image2TextList];
}, [allOptions, t]);

return (
@@ -30,7 +47,7 @@ const LayoutRecognize = () => {
initialValue={DocumentType.DeepDOC}
tooltip={t('layoutRecognizeTip')}
>
<Select options={options} />
<Select options={options} popupMatchSelectWidth={false} />
</Form.Item>
);
};

正在加载...
取消
保存