[Feature] Support download from modelscope#35
Conversation
|
Thanks for the PR! Just a heads-up — the latest It looks like your PR doesn’t include those changes yet. Could you update your branch to the latest main and integrate the Whisper-related updates accordingly? Let me know if you’d like me to point out the key changes — happy to help! |
I see. I will support it too. |
|
@sxy-trans-n Everything is OK. |
| let fileName = (url as NSString).substring(with: match.range(at: 2)) | ||
| // the last part after the last / is the file name, the part before the last / is the folder name | ||
| let fileFolderName = fileName.split(separator: "/").dropLast().joined(separator: "/") | ||
| let fileRealName = fileName.split(separator: "/").last ?? "" |
There was a problem hiding this comment.
It seems like fileRealName was never used
|
High code duplication between |
|
@sxy-trans-n I have abstracted the code that I believe is necessary. |
Feature
ModelScope is a Hugging Face-like platform developed in China, add this support to provide Chinese users with a more accessible and user-friendly experience.