From 313710e80db9203e3e7e777862aa6830fc6f470a Mon Sep 17 00:00:00 2001 From: Tony Salomone Date: Mon, 27 May 2024 14:41:06 -0400 Subject: [PATCH] List import models from passed folder as Local Folder --- src/renderer/components/ModelZoo/ImportModelsModal.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/renderer/components/ModelZoo/ImportModelsModal.tsx b/src/renderer/components/ModelZoo/ImportModelsModal.tsx index 1a72272..1f97656 100644 --- a/src/renderer/components/ModelZoo/ImportModelsModal.tsx +++ b/src/renderer/components/ModelZoo/ImportModelsModal.tsx @@ -104,6 +104,8 @@ export default function ImportModelsModal({ open, setOpen}) { return "Hugging Face" case "ollama": return "Ollama" + case "local": + return "Local Folder" default: return source; } @@ -167,8 +169,6 @@ export default function ImportModelsModal({ open, setOpen}) { const parentPath = firstfilepath.slice(0, -1*webkitRelativePath.length); const topRelativePathDir = webkitRelativePath.split('/')[0]; const fullPath = parentPath + topRelativePathDir; - console.log(firstfile); - console.log(webkitRelativePath); setModelFolder(fullPath); } else { setModelFolder("");