chore: temporary remove convert model (#2266)

Signed-off-by: James <james@jan.ai>
Co-authored-by: James <james@jan.ai>
This commit is contained in:
NamH 2024-03-07 12:16:18 +07:00 committed by GitHub
parent 04077ac493
commit 5abe2e1c24
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -20,7 +20,6 @@ import { setImportModelStageAtom } from '@/hooks/useImportModel'
import ExploreModelList from './ExploreModelList'
import { HuggingFaceModal } from './HuggingFaceModal'
import { experimentalFeatureEnabledAtom } from '@/helpers/atoms/AppConfig.atom'
import {
configuredModelsAtom,
downloadedModelsAtom,
@ -37,8 +36,6 @@ const ExploreModelsScreen = () => {
const [showHuggingFaceModal, setShowHuggingFaceModal] = useState(false)
const setImportModelStage = useSetAtom(setImportModelStageAtom)
const experimentalFeature = useAtomValue(experimentalFeatureEnabledAtom)
const filteredModels = configuredModels.filter((x) => {
if (sortSelected === 'Downloaded') {
return (
@ -59,10 +56,6 @@ const ExploreModelsScreen = () => {
setImportModelStage('SELECTING_MODEL')
}, [setImportModelStage])
const onHuggingFaceConverterClick = () => {
setShowHuggingFaceModal(true)
}
return (
<div
className="flex h-full w-full overflow-y-auto bg-background"
@ -103,7 +96,7 @@ const ExploreModelsScreen = () => {
Import Model
</Button>
</div>
{experimentalFeature && (
{/* {experimentalFeature && (
<div className="text-center">
<p
onClick={onHuggingFaceConverterClick}
@ -112,7 +105,7 @@ const ExploreModelsScreen = () => {
Convert from Hugging Face
</p>
</div>
)}
)} */}
</div>
</div>
<div className="mx-auto w-4/5 py-6">