From 26df0863a819e0933e064a73ac7871224b08aa73 Mon Sep 17 00:00:00 2001 From: ChihYu Yeh Date: Wed, 3 Jul 2024 09:04:54 +0800 Subject: [PATCH] remove redundant code --- wren-ai-service/src/web/v1/services/sql_explanation.py | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/wren-ai-service/src/web/v1/services/sql_explanation.py b/wren-ai-service/src/web/v1/services/sql_explanation.py index 75c22e041f..080a87ad6b 100644 --- a/wren-ai-service/src/web/v1/services/sql_explanation.py +++ b/wren-ai-service/src/web/v1/services/sql_explanation.py @@ -90,16 +90,6 @@ async def _task( ] await asyncio.gather(*tasks) - # generation_result = await self._pipelines["generation"].run( - # question=sql_explanation_request.question, - # sql=sql_explanation_request.sql, - # sql_summary=sql_explanation_request.sql_summary, - # sql_analysis_results=sql_explanation_request.sql_analysis_results, - # full_sql=sql_explanation_request.full_sql, - # ) - - # sql_explanation_result = generation_result["post_process"]["results"] - logger.debug(f"sql explanation results: {sql_explanation_results}") self.sql_explanation_results[query_id] = SQLExplanationResultResponse(