fix: fake spec data
This commit is contained in:
@@ -3,11 +3,11 @@ import { downloadFile, listFiles, listModels } from '@huggingface/hub';
|
||||
import { PipelineType } from '@huggingface/tasks';
|
||||
import { request } from '@umijs/max';
|
||||
import qs from 'query-string';
|
||||
import testSpecs from '../config/test';
|
||||
import {
|
||||
AccessControlFormData,
|
||||
BackendItem,
|
||||
CatalogItem,
|
||||
CatalogSpec,
|
||||
DraftModelItem,
|
||||
EvaluateResult,
|
||||
EvaluateSpec,
|
||||
@@ -370,15 +370,14 @@ export async function queryCatalogItemSpec(
|
||||
params: { id: number },
|
||||
options?: any
|
||||
) {
|
||||
// return await request<Global.PageResponse<CatalogSpec>>(
|
||||
// `/model-sets/${params.id}/specs`,
|
||||
// {
|
||||
// method: 'GET',
|
||||
// ...options,
|
||||
// params
|
||||
// }
|
||||
// );
|
||||
return testSpecs;
|
||||
return await request<Global.PageResponse<CatalogSpec>>(
|
||||
`/model-sets/${params.id}/specs`,
|
||||
{
|
||||
method: 'GET',
|
||||
...options,
|
||||
params
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
export async function evaluationsModelSpec(
|
||||
|
||||
Reference in New Issue
Block a user