diff --git a/src/pages/llmodels/components/deploy-dropdown.tsx b/src/pages/llmodels/components/deploy-dropdown.tsx index 3f7f55a2..a9259fd2 100644 --- a/src/pages/llmodels/components/deploy-dropdown.tsx +++ b/src/pages/llmodels/components/deploy-dropdown.tsx @@ -1,3 +1,4 @@ +import { Col, Row } from 'antd'; import React from 'react'; import '../style/deploy-dropdown.less'; @@ -14,12 +15,16 @@ interface DeployDropdownProps { const DeployDropdown: React.FC = ({ items, onSelect }) => { return (
- {items.map((item) => ( -
onSelect(item)} className="item"> - {item.icon} - {item.label} -
- ))} + + {items.map((item) => ( + +
onSelect(item)} className="item"> + {item.icon} + {item.label} +
+ + ))} +
); }; diff --git a/src/pages/llmodels/components/table-list.tsx b/src/pages/llmodels/components/table-list.tsx index c1948d8a..45c2c776 100644 --- a/src/pages/llmodels/components/table-list.tsx +++ b/src/pages/llmodels/components/table-list.tsx @@ -237,12 +237,6 @@ const Models: React.FC = ({ }, []); const sourceOptions = [ - { - label: intl.formatMessage({ id: 'menu.models.modelCatalog' }), - value: 'catalog', - key: 'catalog', - icon: - }, { label: 'Hugging Face', value: modelSourceMap.huggingface_value, @@ -261,6 +255,12 @@ const Models: React.FC = ({ key: 'modelscope', icon: }, + { + label: intl.formatMessage({ id: 'menu.models.modelCatalog' }), + value: 'catalog', + key: 'catalog', + icon: + }, { label: intl.formatMessage({ id: 'models.form.localPath' }), value: modelSourceMap.local_path_value,