From 23826fc20a910f8eb95487aa476ba21d6e0177de Mon Sep 17 00:00:00 2001 From: axel7083 <42176370+axel7083@users.noreply.github.com> Date: Wed, 12 Jun 2024 14:39:11 +0200 Subject: [PATCH] fix: drag&drop backend default value Signed-off-by: axel7083 <42176370+axel7083@users.noreply.github.com> --- packages/frontend/src/pages/ImportModel.svelte | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/packages/frontend/src/pages/ImportModel.svelte b/packages/frontend/src/pages/ImportModel.svelte index 06b8f1212..862de09e5 100644 --- a/packages/frontend/src/pages/ImportModel.svelte +++ b/packages/frontend/src/pages/ImportModel.svelte @@ -86,7 +86,10 @@ async function onFile(event: DragEvent): Promise { if (files.length !== 1) { return; } - localModel = files[0]; + localModel = { + ...files[0], + backend: InferenceType.LLAMA_CPP, + }; } @@ -147,9 +150,7 @@ async function onFile(event: DragEvent): Promise {
- - - + backends represents the technology required to run the models.