From d914639b1cefe8a39497ed84747ece4930114f8b Mon Sep 17 00:00:00 2001 From: Gabriel Almeida Date: Tue, 28 Mar 2023 22:05:59 -0300 Subject: [PATCH] fix: remove unused function --- src/backend/langflow/interface/run.py | 21 --------------------- 1 file changed, 21 deletions(-) diff --git a/src/backend/langflow/interface/run.py b/src/backend/langflow/interface/run.py index a2f691b91..f4363562c 100644 --- a/src/backend/langflow/interface/run.py +++ b/src/backend/langflow/interface/run.py @@ -8,27 +8,6 @@ from langflow.utils import payload from langflow.graph.graph import Graph -def process_data_graph(data_graph: Dict[str, Any]): - """ - Process data graph by extracting input variables and replacing ZeroShotPrompt - with PromptTemplate,then run the graph and return the result and thought. - """ - - extracted_json = loading.extract_json(data_graph) - - message = data_graph["message"] - - # Process json - result, thought = get_result_and_thought(extracted_json, message) - - return { - "result": result, - "thought": re.sub( - r"\x1b\[([0-9,A-Z]{1,2}(;[0-9,A-Z]{1,2})?)?[m|K]", "", thought - ).strip(), - } - - def process_graph(data_graph: Dict[str, Any]): """ Process graph by extracting input variables and replacing ZeroShotPrompt