diff --git a/web/screens/ExploreModels/HuggingFaceConvertingErrorModal/index.tsx b/web/screens/ExploreModels/HuggingFaceConvertingErrorModal/index.tsx index 2bd0fde3c..863249d41 100644 --- a/web/screens/ExploreModels/HuggingFaceConvertingErrorModal/index.tsx +++ b/web/screens/ExploreModels/HuggingFaceConvertingErrorModal/index.tsx @@ -1,7 +1,6 @@ import { useAtomValue } from 'jotai' import { - conversionErrorAtom, conversionStatusAtom, repoDataAtom, } from '@/helpers/atoms/HFConverter.atom' @@ -11,8 +10,6 @@ export const HuggingFaceConvertingErrorModal = () => { const repoData = useAtomValue(repoDataAtom)! // This component only loads when conversionStatus is not null const conversionStatus = useAtomValue(conversionStatusAtom)! - // This component only loads when conversionError is not null - const conversionError = useAtomValue(conversionErrorAtom)! return ( <> diff --git a/web/screens/ExploreModels/index.tsx b/web/screens/ExploreModels/index.tsx index b1a10d5d6..c413e3c3b 100644 --- a/web/screens/ExploreModels/index.tsx +++ b/web/screens/ExploreModels/index.tsx @@ -1,4 +1,4 @@ -import { useCallback, useState } from 'react' +import { useCallback, useContext, useState } from 'react' import { Input, @@ -15,6 +15,8 @@ import { import { useAtomValue, useSetAtom } from 'jotai' import { Plus, SearchIcon } from 'lucide-react' +import { FeatureToggleContext } from '@/context/FeatureToggle' + import { setImportModelStageAtom } from '@/hooks/useImportModel' import ExploreModelList from './ExploreModelList' @@ -36,6 +38,8 @@ const ExploreModelsScreen = () => { const [showHuggingFaceModal, setShowHuggingFaceModal] = useState(false) const setImportModelStage = useSetAtom(setImportModelStageAtom) + const { experimentalFeature } = useContext(FeatureToggleContext) + const filteredModels = configuredModels.filter((x) => { if (sortSelected === 'Downloaded') { return ( @@ -100,14 +104,16 @@ const ExploreModelsScreen = () => {

Import Model

-
-

- Convert from Hugging Face -

-
+ {experimentalFeature && ( +
+

+ Convert from Hugging Face +

+
+ )}