Skip to content

Commit

Permalink
List import models from passed folder as Local Folder
Browse files Browse the repository at this point in the history
  • Loading branch information
dadmobile committed May 27, 2024
1 parent 12300b7 commit 313710e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/renderer/components/ModelZoo/ImportModelsModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down Expand Up @@ -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("");
Expand Down

0 comments on commit 313710e

Please sign in to comment.