From ca4cd3a824bfbcee215ad00beb8aab6b8e3c7488 Mon Sep 17 00:00:00 2001 From: pythongosssss <125205205+pythongosssss@users.noreply.github.com> Date: Sun, 14 Jul 2024 12:46:44 +0100 Subject: [PATCH] fix split --- web/js/modelInfo.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/js/modelInfo.js b/web/js/modelInfo.js index ca8ae0c..9c504c2 100644 --- a/web/js/modelInfo.js +++ b/web/js/modelInfo.js @@ -80,7 +80,7 @@ export class LoraInfoDialog extends ModelInfoDialog { addTags() { let tags = this.getTagFrequency(); if(!tags?.length) { - tags = this.metadata["modelspec.tags"]?.split(" ").map(t => [t, 1]); + tags = (this.metadata["modelspec.tags"] ?? "").split(",").map(t => [t.trim(), 1]); } let hasMore; if (tags?.length) {