chore: update handle download variant

This commit is contained in:
Faisal Amir 2025-08-14 09:26:54 +07:00
parent b338849952
commit 1f0e79e934

View File

@ -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
)
}}