From 856384857c861317ca1551e388b7516873ec28b3 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Fri, 19 Jun 2026 19:08:33 +0100 Subject: Remove more of the tag based image selection --- scripts/toy.groovy | 22 ---------------------- 1 file changed, 22 deletions(-) (limited to 'scripts/toy.groovy') diff --git a/scripts/toy.groovy b/scripts/toy.groovy index e21f2c8..a19b024 100644 --- a/scripts/toy.groovy +++ b/scripts/toy.groovy @@ -229,21 +229,6 @@ return new Object() { } } - final compose = { texts -> - if (!texts || texts.isEmpty()) return null; - return texts.collect { - t -> t[getRandom(t.size())] - }.join(" ").capitalize(); - }; - final present = { imageSpec, texts -> - if (texts) { - show(compose(texts)); - } - if (imageSpec) { - return showImage(imageSpec); - } - return null; - }; final llmPresent = { text -> final image = showImageForText(text); show(text); @@ -252,13 +237,6 @@ return new Object() { image: image ]; }; - final matchTags = { spec -> - return { obj -> - return spec.collect({ tag, score -> - return (obj.tags.contains(tag.toString()) ? 1 : -1) * score; - }).sum(); - }; - }; final triggerHandlers = []; final addTriggerHandler = { String triggerName, func, defArg = null -> -- cgit v1.3