From f180fa6f26293c20d55bcdd3acd15d0d93023d5d Mon Sep 17 00:00:00 2001 From: Gabriel Luiz Freitas Almeida Date: Mon, 19 Jun 2023 14:25:10 -0300 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20fix(process.py):=20change=20inpu?= =?UTF-8?q?t=20parameter=20type=20hint=20to=20include=20Path=20type=20The?= =?UTF-8?q?=20input=20parameter=20now=20accepts=20a=20Path=20object=20in?= =?UTF-8?q?=20addition=20to=20a=20string=20or=20dictionary.=20This=20impro?= =?UTF-8?q?ves=20the=20flexibility=20of=20the=20function=20and=20allows=20?= =?UTF-8?q?for=20easier=20file=20handling.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/backend/langflow/processing/process.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/backend/langflow/processing/process.py b/src/backend/langflow/processing/process.py index 8383f0cfe..4f5295c60 100644 --- a/src/backend/langflow/processing/process.py +++ b/src/backend/langflow/processing/process.py @@ -133,7 +133,7 @@ def process_graph_cached(data_graph: Dict[str, Any], message: str): def load_flow_from_json( - input: Union[str, dict], tweaks: Optional[dict] = None, build=True + input: Union[Path, str, dict], tweaks: Optional[dict] = None, build=True ): """ Load flow from a JSON file or a JSON object.