From 793b80862010f23d6ebdf31bc707e6cd8c50a87e Mon Sep 17 00:00:00 2001 From: fg-nava <189638926+fg-nava@users.noreply.github.com> Date: Fri, 10 Jan 2025 06:47:00 -0800 Subject: [PATCH] style: fix linting issues in chainlit.py --- app/src/chainlit.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/src/chainlit.py b/app/src/chainlit.py index d2d42782..dcd9e19c 100644 --- a/app/src/chainlit.py +++ b/app/src/chainlit.py @@ -260,7 +260,6 @@ async def _batch_proccessing(file: AskFileResponse) -> None: # E.g., "abcd.csv" to "abcd_results.csv" result_file_name = file.name.removesuffix(".csv") + "_results.csv" - elements = [cl.File(name=result_file_name, path=result_file_path)] await cl.Message( author="backend", content="File processed, results attached.", @@ -269,7 +268,7 @@ async def _batch_proccessing(file: AskFileResponse) -> None: "original_file": file.name, "result_file": result_file_name }, - elements=elements + elements=[cl.File(name=result_file_name, path=result_file_path)] ).send() except ValueError as err: