Skip to content

Commit

Permalink
style: fix linting issues in chainlit.py
Browse files Browse the repository at this point in the history
  • Loading branch information
fg-nava committed Jan 10, 2025
1 parent 61482e4 commit 793b808
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions app/src/chainlit.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.",
Expand All @@ -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:
Expand Down

0 comments on commit 793b808

Please sign in to comment.