From c28a02ed8c865d0dbb3576b9f5fa0f35d10a2ee8 Mon Sep 17 00:00:00 2001 From: Girish Dodda <61810026+mrblacklicorice@users.noreply.github.com> Date: Fri, 12 Jun 2026 15:28:46 -0500 Subject: [PATCH 1/2] task done --- .../NativeModelSearch/NativeModelsSearch.tsx | 109 +++++++++--------- 1 file changed, 52 insertions(+), 57 deletions(-) diff --git a/src/app/MlHub/Models/NativeModelSearch/NativeModelsSearch.tsx b/src/app/MlHub/Models/NativeModelSearch/NativeModelsSearch.tsx index 15f12c88..268925e6 100644 --- a/src/app/MlHub/Models/NativeModelSearch/NativeModelsSearch.tsx +++ b/src/app/MlHub/Models/NativeModelSearch/NativeModelsSearch.tsx @@ -138,11 +138,6 @@ const NativeModelsSearch: React.FC = () => { return (
- - Model Discovery Beta - Model discovery funtionality is available, however the deployment - strategies listed in some table entries is purely for demonstration -
Discover Models @@ -248,73 +243,73 @@ const NativeModelsSearch: React.FC = () => { state.prevCursor === undefined && state.currentCursor === undefined ? undefined : () => { - let libraries = filters.libraries.filter( - (l) => l !== null && l !== undefined - ); + let libraries = filters.libraries.filter( + (l) => l !== null && l !== undefined + ); - let taskTypes = filters.task_types.filter( - (t) => t !== null && t !== undefined - ); + let taskTypes = filters.task_types.filter( + (t) => t !== null && t !== undefined + ); - let criterion: Models.DiscoveryCriterion = {}; - if (libraries.length > 0) { - criterion['libraries'] = libraries; - } + let criterion: Models.DiscoveryCriterion = {}; + if (libraries.length > 0) { + criterion['libraries'] = libraries; + } - if (taskTypes.length > 0) { - criterion['task_types'] = taskTypes; - } - discover( - { - limit: filters.limit, - includeCount: true, - cursor: state.prevCursor, - discoveryCriteria: { - criteria: [criterion], - }, - }, - { - onSuccess: onSuccessPrevious, - } - ); + if (taskTypes.length > 0) { + criterion['task_types'] = taskTypes; } + discover( + { + limit: filters.limit, + includeCount: true, + cursor: state.prevCursor, + discoveryCriteria: { + criteria: [criterion], + }, + }, + { + onSuccess: onSuccessPrevious, + } + ); + } } next={ state.cursors.length < 0 || state.nextCursor === undefined ? undefined : () => { - let libraries = filters.libraries.filter( - (l) => l !== null && l !== undefined - ); + let libraries = filters.libraries.filter( + (l) => l !== null && l !== undefined + ); - let taskTypes = filters.task_types.filter( - (t) => t !== null && t !== undefined - ); + let taskTypes = filters.task_types.filter( + (t) => t !== null && t !== undefined + ); - let criterion: Models.DiscoveryCriterion = {}; + let criterion: Models.DiscoveryCriterion = {}; - if (libraries.length > 0) { - criterion['libraries'] = libraries; - } + if (libraries.length > 0) { + criterion['libraries'] = libraries; + } - if (taskTypes.length > 0) { - criterion['task_types'] = taskTypes; - } + if (taskTypes.length > 0) { + criterion['task_types'] = taskTypes; + } - discover( - { - limit: filters.limit, - includeCount: true, - cursor: state.cursors.at(-1), - discoveryCriteria: { - criteria: [criterion], - }, + discover( + { + limit: filters.limit, + includeCount: true, + cursor: state.cursors.at(-1), + discoveryCriteria: { + criteria: [criterion], }, - { - onSuccess: onSuccessNext, - } - ); - } + }, + { + onSuccess: onSuccessNext, + } + ); + } } isLoading={isLoading} /> From accb109fbd03511b236468af623811e4b2f75265 Mon Sep 17 00:00:00 2001 From: Girish Dodda <61810026+mrblacklicorice@users.noreply.github.com> Date: Fri, 12 Jun 2026 15:42:42 -0500 Subject: [PATCH 2/2] Ran Prettier and Linter --- .../NativeModelSearch/NativeModelsSearch.tsx | 104 +++++++++--------- 1 file changed, 52 insertions(+), 52 deletions(-) diff --git a/src/app/MlHub/Models/NativeModelSearch/NativeModelsSearch.tsx b/src/app/MlHub/Models/NativeModelSearch/NativeModelsSearch.tsx index 268925e6..7fc0d9d4 100644 --- a/src/app/MlHub/Models/NativeModelSearch/NativeModelsSearch.tsx +++ b/src/app/MlHub/Models/NativeModelSearch/NativeModelsSearch.tsx @@ -243,73 +243,73 @@ const NativeModelsSearch: React.FC = () => { state.prevCursor === undefined && state.currentCursor === undefined ? undefined : () => { - let libraries = filters.libraries.filter( - (l) => l !== null && l !== undefined - ); + let libraries = filters.libraries.filter( + (l) => l !== null && l !== undefined + ); - let taskTypes = filters.task_types.filter( - (t) => t !== null && t !== undefined - ); + let taskTypes = filters.task_types.filter( + (t) => t !== null && t !== undefined + ); - let criterion: Models.DiscoveryCriterion = {}; - if (libraries.length > 0) { - criterion['libraries'] = libraries; - } + let criterion: Models.DiscoveryCriterion = {}; + if (libraries.length > 0) { + criterion['libraries'] = libraries; + } - if (taskTypes.length > 0) { - criterion['task_types'] = taskTypes; - } - discover( - { - limit: filters.limit, - includeCount: true, - cursor: state.prevCursor, - discoveryCriteria: { - criteria: [criterion], - }, - }, - { - onSuccess: onSuccessPrevious, + if (taskTypes.length > 0) { + criterion['task_types'] = taskTypes; } - ); - } + discover( + { + limit: filters.limit, + includeCount: true, + cursor: state.prevCursor, + discoveryCriteria: { + criteria: [criterion], + }, + }, + { + onSuccess: onSuccessPrevious, + } + ); + } } next={ state.cursors.length < 0 || state.nextCursor === undefined ? undefined : () => { - let libraries = filters.libraries.filter( - (l) => l !== null && l !== undefined - ); + let libraries = filters.libraries.filter( + (l) => l !== null && l !== undefined + ); - let taskTypes = filters.task_types.filter( - (t) => t !== null && t !== undefined - ); + let taskTypes = filters.task_types.filter( + (t) => t !== null && t !== undefined + ); - let criterion: Models.DiscoveryCriterion = {}; + let criterion: Models.DiscoveryCriterion = {}; - if (libraries.length > 0) { - criterion['libraries'] = libraries; - } + if (libraries.length > 0) { + criterion['libraries'] = libraries; + } - if (taskTypes.length > 0) { - criterion['task_types'] = taskTypes; - } + if (taskTypes.length > 0) { + criterion['task_types'] = taskTypes; + } - discover( - { - limit: filters.limit, - includeCount: true, - cursor: state.cursors.at(-1), - discoveryCriteria: { - criteria: [criterion], + discover( + { + limit: filters.limit, + includeCount: true, + cursor: state.cursors.at(-1), + discoveryCriteria: { + criteria: [criterion], + }, }, - }, - { - onSuccess: onSuccessNext, - } - ); - } + { + onSuccess: onSuccessNext, + } + ); + } } isLoading={isLoading} />