Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve FLUX tool for output label and prompt display #1551

Merged
merged 2 commits into from
Dec 2, 2024

Conversation

arash77
Copy link
Contributor

@arash77 arash77 commented Nov 27, 2024

Enhance the output label based on the input type and include the prompt in the console output when using FLUX tool.

@@ -39,7 +39,7 @@ python3 '$__tool_directory__/flux.py'
</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"/>
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if that a good idea? We don't know how large the prompt will be

Copy link
Contributor Author

@arash77 arash77 Nov 27, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It doesn't add the prompt it self, it just announces that it is a text prompt.
Before it was empty, if it was not a file.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Or should it be a short text about the prompt?

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, that is ok. Thanks

@bgruening bgruening merged commit d9ac789 into bgruening:master Dec 2, 2024
11 checks passed
@arash77 arash77 deleted the update-flux-output branch December 2, 2024 20:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants