From a5fbff7313f7ff3a343bb452163198b5b7371855 Mon Sep 17 00:00:00 2001 From: "Timothy J. Baek" Date: Wed, 27 Dec 2023 19:43:25 -0800 Subject: [PATCH] feat: import modelfiles --- src/routes/(app)/modelfiles/+page.svelte | 176 +++++++++++++++-------- 1 file changed, 116 insertions(+), 60 deletions(-) diff --git a/src/routes/(app)/modelfiles/+page.svelte b/src/routes/(app)/modelfiles/+page.svelte index 41691524..d3c0b098 100644 --- a/src/routes/(app)/modelfiles/+page.svelte +++ b/src/routes/(app)/modelfiles/+page.svelte @@ -15,6 +15,7 @@ } from '$lib/apis/modelfiles'; let localModelfiles = []; + let importFiles; const deleteModelHandler = async (tagName) => { let success = null; @@ -199,78 +200,133 @@ {/each} - {#if localModelfiles.length > 0} -
+
-
-
- {localModelfiles.length} Local Modelfiles Detected -
+
+
+ { + console.log(importFiles); -
- + reader.readAsText(importFiles[0]); + }} + /> - -
+
+ + + +
+
- {/if} + + {#if localModelfiles.length > 0} +
+
+ {localModelfiles.length} Local Modelfiles Detected +
+ +
+ + + +
+
+ {/if} +
Made by OllamaHub Community