chore: update handle download variant
This commit is contained in:
parent
b338849952
commit
1f0e79e934
@ -745,10 +745,16 @@ function Hub() {
|
|||||||
title={t('hub:downloadModel')}
|
title={t('hub:downloadModel')}
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
addLocalDownloadingModel(
|
addLocalDownloadingModel(
|
||||||
variant.model_id
|
variant.model_id.replace(
|
||||||
|
/[^a-zA-Z0-9/_\-.]/g,
|
||||||
|
''
|
||||||
|
)
|
||||||
)
|
)
|
||||||
pullModel(
|
pullModel(
|
||||||
variant.model_id,
|
variant.model_id.replace(
|
||||||
|
/[^a-zA-Z0-9/_\-.]/g,
|
||||||
|
''
|
||||||
|
),
|
||||||
variant.path
|
variant.path
|
||||||
)
|
)
|
||||||
}}
|
}}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user