fixing update model type
This commit is contained in:
parent
4e9c248fa8
commit
cb3f3f4d0c
1 changed files with 6 additions and 1 deletions
|
|
@ -76,6 +76,7 @@ export function DatasetSection() {
|
|||
setDatasetEvalSplit,
|
||||
hfToken,
|
||||
modelType,
|
||||
isVisionModel,
|
||||
datasetSliceStart,
|
||||
setDatasetSliceStart,
|
||||
datasetSliceEnd,
|
||||
|
|
@ -94,6 +95,7 @@ export function DatasetSection() {
|
|||
setDatasetEvalSplit: s.setDatasetEvalSplit,
|
||||
hfToken: s.hfToken,
|
||||
modelType: s.modelType,
|
||||
isVisionModel: s.isVisionModel,
|
||||
datasetSliceStart: s.datasetSliceStart,
|
||||
setDatasetSliceStart: s.setDatasetSliceStart,
|
||||
datasetSliceEnd: s.datasetSliceEnd,
|
||||
|
|
@ -119,6 +121,9 @@ export function DatasetSection() {
|
|||
}
|
||||
setInputValue(val);
|
||||
}
|
||||
|
||||
const effectiveModelType = isVisionModel ? "vision" : modelType;
|
||||
|
||||
const {
|
||||
results: hfResults,
|
||||
isLoading,
|
||||
|
|
@ -126,7 +131,7 @@ export function DatasetSection() {
|
|||
fetchMore,
|
||||
error: hfSearchError,
|
||||
} = useHfDatasetSearch(debouncedQuery, {
|
||||
modelType,
|
||||
modelType: effectiveModelType,
|
||||
accessToken: hfToken || undefined,
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue