Commit 364dc97
committed
fix: propagate hub parameter to vad/punc/spk sub-model builds (#2859)
When user passes hub='hf', the parameter was lost when building
sub-models (vad_model, punc_model, spk_model), causing them to
default to ModelScope and fail with 404 for HuggingFace model IDs.
Now hub is forwarded via setdefault so sub-models inherit the
parent's hub preference unless explicitly overridden.1 parent c8ebbc7 commit 364dc97
1 file changed
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
228 | 228 | | |
229 | 229 | | |
230 | 230 | | |
| 231 | + | |
| 232 | + | |
231 | 233 | | |
232 | 234 | | |
233 | 235 | | |
| |||
239 | 241 | | |
240 | 242 | | |
241 | 243 | | |
| 244 | + | |
| 245 | + | |
242 | 246 | | |
243 | 247 | | |
244 | 248 | | |
| |||
253 | 257 | | |
254 | 258 | | |
255 | 259 | | |
| 260 | + | |
| 261 | + | |
256 | 262 | | |
257 | 263 | | |
258 | 264 | | |
| |||
0 commit comments