style: add model selection tips in playground

This commit is contained in:
jialin
2025-04-09 17:46:18 +08:00
parent fe8ff2b180
commit 694ffb0a81
11 changed files with 97 additions and 42 deletions
+12 -1
View File
@@ -207,8 +207,19 @@ const SearchModel: React.FC<SearchInputProps> = (props) => {
try {
const repoList = list.map((item) => {
const res = handleRecognizeAudioModel(item, modelSource);
let backendObj = {};
if (res.isAudio) {
backendObj = {
backend: backendOptionsMap.voxBox
};
} else if (item.isGGUF) {
// backendObj = {
// backend: backendOptionsMap.llamaBox
// };
}
return {
...(res.isAudio ? { backend: backendOptionsMap.voxBox } : {}),
...backendObj,
source: modelSource,
...(modelSource === modelSourceMap.huggingface_value
? {