chore: drawer ux

This commit is contained in:
jialin
2024-08-09 10:26:46 +08:00
parent 8490e32ef1
commit 77f38394e6
22 changed files with 547 additions and 150 deletions
+3 -1
View File
@@ -1,4 +1,5 @@
import { listFiles, listModels } from '@huggingface/hub';
import { PipelineType } from '@huggingface/tasks';
import { request } from '@umijs/max';
import {
FormData,
@@ -129,6 +130,7 @@ export async function queryHuggingfaceModels(
search: {
query: string;
tags: string[];
task?: PipelineType;
};
},
options?: any
@@ -137,7 +139,7 @@ export async function queryHuggingfaceModels(
for await (const model of listModels({
...params,
...options,
limit: 50,
limit: 100,
additionalFields: ['sha'],
fetch(url: string, config: any) {
try {