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