From 26c0f3292960f47ce9152e7cf1b79abb3cfc56e0 Mon Sep 17 00:00:00 2001 From: Doug Date: Thu, 20 Jun 2024 17:30:15 +1000 Subject: [PATCH] Added the URL of the Civitai model page at top of output --- lora_info.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lora_info.py b/lora_info.py index d05d88a..58b862f 100644 --- a/lora_info.py +++ b/lora_info.py @@ -74,7 +74,10 @@ def get_lora_info(lora_name): baseModel = model_info.get("baseModel", "") images = model_info.get('images') examplePrompt = None - + modelID = model_info.get("modelId") + + if modelID: + output += f"URL: https://civitai.com/models/{modelID}\n" if trainedWords: output += "Triggers: " + trainedWords output += "\n"