Remove duplicate code in generate_result function
This commit is contained in:
parent
2e752f563c
commit
1efa367bf9
1 changed files with 2 additions and 4 deletions
|
|
@ -1,8 +1,8 @@
|
|||
from typing import Any, Optional
|
||||
from typing import Any, Optional, Union
|
||||
|
||||
from langchain_core.messages import BaseMessage
|
||||
from langchain_core.runnables import Runnable
|
||||
from langflow.services.deps import Union, get_socket_service
|
||||
from langflow.services.deps import get_socket_service
|
||||
from langflow.utils.constants import PYTHON_BASIC_TYPES
|
||||
|
||||
|
||||
|
|
@ -35,5 +35,3 @@ async def generate_result(built_object: Any, inputs: dict, has_external_output:
|
|||
else:
|
||||
result = built_object
|
||||
return result
|
||||
result = built_object
|
||||
return result
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue