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