changeset 4:7939ae8c5fd5 draft default tip

planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/flux commit d9ac789235499840b8965cbe5efe1d26406f5d9a
author bgruening
date Mon, 02 Dec 2024 20:26:07 +0000
parents 21ee409e6cde
children
files flux.py flux.xml
diffstat 2 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/flux.py	Fri Nov 22 13:41:32 2024 +0000
+++ b/flux.py	Mon Dec 02 20:26:07 2024 +0000
@@ -12,6 +12,7 @@
         prompt = f.read().strip()
 elif prompt_type == "text":
     prompt = sys.argv[3]
+print(f"Creating image from prompt: {prompt}")
 
 if "dev" in model_path:
     num_inference_steps = 20
--- a/flux.xml	Fri Nov 22 13:41:32 2024 +0000
+++ b/flux.xml	Mon Dec 02 20:26:07 2024 +0000
@@ -2,7 +2,7 @@
     <description>text-to-image model</description>
     <macros>
         <token name="@TOOL_VERSION@">2024</token>
-        <token name="@VERSION_SUFFIX@">3</token>
+        <token name="@VERSION_SUFFIX@">4</token>
     </macros>
     <requirements>
         <container type="docker">quay.io/galaxy/black_forest_labs_flux:2024-0</container>
@@ -39,7 +39,7 @@
         </conditional>
     </inputs>
     <outputs>
-        <data name="output" format="png" label="${tool.name} on ${on_string}" from_work_dir="./output.png"/>
+        <data name="output" format="png" label="${tool.name} on ${on_string if $input_type_selector=='file' else 'text prompt'}" from_work_dir="./output.png"/>
     </outputs>
     <tests>
         <test expect_exit_code="1" expect_failure="true">