Skip to content
Snippets Groups Projects
Commit 313710e8 authored by Tony Salomone's avatar Tony Salomone
Browse files

List import models from passed folder as Local Folder

parent 12300b7a
No related branches found
No related tags found
No related merge requests found
...@@ -104,6 +104,8 @@ export default function ImportModelsModal({ open, setOpen}) { ...@@ -104,6 +104,8 @@ export default function ImportModelsModal({ open, setOpen}) {
return "Hugging Face" return "Hugging Face"
case "ollama": case "ollama":
return "Ollama" return "Ollama"
case "local":
return "Local Folder"
default: default:
return source; return source;
} }
...@@ -167,8 +169,6 @@ export default function ImportModelsModal({ open, setOpen}) { ...@@ -167,8 +169,6 @@ export default function ImportModelsModal({ open, setOpen}) {
const parentPath = firstfilepath.slice(0, -1*webkitRelativePath.length); const parentPath = firstfilepath.slice(0, -1*webkitRelativePath.length);
const topRelativePathDir = webkitRelativePath.split('/')[0]; const topRelativePathDir = webkitRelativePath.split('/')[0];
const fullPath = parentPath + topRelativePathDir; const fullPath = parentPath + topRelativePathDir;
console.log(firstfile);
console.log(webkitRelativePath);
setModelFolder(fullPath); setModelFolder(fullPath);
} else { } else {
setModelFolder(""); setModelFolder("");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment