fix: modelscope model name
This commit is contained in:
@@ -9,6 +9,7 @@ html {
|
||||
--ant-color-fill-secondary: rgba(0, 0, 0, 6%);
|
||||
--ant-color-fill-tertiary: rgba(0, 0, 0, 4%);
|
||||
--ant-color-fill-quaternary: rgba(0, 0, 0, 2%);
|
||||
--color-text-light-1: rgba(255, 255, 255, 90%);
|
||||
--color-fill-1: var(--ant-color-fill-tertiary);
|
||||
--color-scrollbar-thumb: rgba(193, 193, 193, 80%);
|
||||
--color-scrollbar-track: var(--ant-color-fill-tertiary);
|
||||
|
||||
@@ -211,6 +211,7 @@ const AdvanceConfig: React.FC<AdvanceConfigProps> = (props) => {
|
||||
>
|
||||
<Checkbox className="p-l-6">
|
||||
<Tooltip
|
||||
trigger={['click']}
|
||||
title={intl.formatMessage({
|
||||
id: 'models.form.partialoffload.tips'
|
||||
})}
|
||||
|
||||
@@ -89,7 +89,7 @@ const ModelCard: React.FC<{
|
||||
console.log('detaildata==========', data);
|
||||
setModelData({
|
||||
...data?.Data,
|
||||
name: data?.Data?.Name
|
||||
name: `${data.Data?.Path}/${data.Data?.Name}`
|
||||
});
|
||||
setReadmeText(data?.Data?.ReadMeContent);
|
||||
} catch (error) {
|
||||
@@ -143,7 +143,7 @@ const ModelCard: React.FC<{
|
||||
size="small"
|
||||
type="link"
|
||||
target="_blank"
|
||||
href={`https://modelscope.cn/models/${modelData?.Path}/${modelData.name}`}
|
||||
href={`https://modelscope.cn/models/${modelData.name}`}
|
||||
>
|
||||
<IconFont type="icon-external-link"></IconFont>
|
||||
</Button>
|
||||
|
||||
Reference in New Issue
Block a user