Open edwinjosechittilappilly opened 1 month ago
Hi @edwinjosechittilappilly,
The issue here is that the output names currently aren’t unique, which is causing conflicts. To resolve this, each output needs a distinct name. By updating the code as follows:
outputs = [
Output(display_name="user", name="text_user", method="user_response"),
Output(display_name="person", name="text_person", method="person_response")
]
_name="text_person"_ _name="textuser"
you’ll be able to see both outputs separately, as shown here:
Does that make sense? Thanks!
Bug Description
Issue: When creating a custom component using multiple outputs, the functionality is broken in both version 1.0.19 and the main branch of Langflow. This worked correctly in version 1.0.18.
Component Code Example:
Additional Information: This issue seems to have been introduced in version 1.0.19. The component works as expected in 1.0.18.
https://github.com/user-attachments/assets/c23a5cc2-1dfc-43a2-a35e-3e80ab109296
Reproduction
Steps to Reproduce:
Expected behavior
Expected Behavior: Both outputs (user_response and person_response) should be created and returned correctly.
Actual Behavior: In versions 1.0.19 and main, only one output is created. The second output is not generated, breaking the expected functionality.
Who can help?
@cris
Operating System
Mac OS
Langflow Version
Version Information: • Langflow: 1.0.19 (also broken in main) • Working Version: 1.0.18
Python Version
3.12
Screenshot
No response
Flow File
No response