File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
wren-ai-service/src/pipelines/generation Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -111,7 +111,7 @@ def post_process(
111111) -> dict :
112112 return post_processor .run (
113113 generate_chart_adjustment .get ("replies" ),
114- preprocess_data [ "sample_data " ] if data_provided else data [ "data " ],
114+ data [ "data " ] if data_provided else preprocess_data [ "sample_data " ],
115115 remove_data_from_chart_schema = remove_data_from_chart_schema ,
116116 )
117117
Original file line number Diff line number Diff line change @@ -104,7 +104,7 @@ def post_process(
104104) -> dict :
105105 return post_processor .run (
106106 generate_chart .get ("replies" ),
107- preprocess_data [ "sample_data " ] if data_provided else data [ "data " ],
107+ data [ "data " ] if data_provided else preprocess_data [ "sample_data " ],
108108 remove_data_from_chart_schema = remove_data_from_chart_schema ,
109109 )
110110
You can’t perform that action at this time.
0 commit comments