From 72a8b12f246df22bda19b1ff2ac0002665ebe52b Mon Sep 17 00:00:00 2001 From: suluyana Date: Mon, 25 Nov 2024 15:18:24 +0800 Subject: [PATCH] fix lint --- apps/agentfabric/app.py | 3 ++- apps/agentfabric/appBot.py | 8 ++++++-- apps/agentfabric/server.py | 3 ++- 3 files changed, 10 insertions(+), 4 deletions(-) diff --git a/apps/agentfabric/app.py b/apps/agentfabric/app.py index ccb7c918..92c3c024 100644 --- a/apps/agentfabric/app.py +++ b/apps/agentfabric/app.py @@ -624,7 +624,8 @@ def preview_send_message(chatbot, input, _state, uuid_str, _user_token): # skip filtered_files = [ item for item in append_files - if not item.lower().endswith(('.jpeg', '.png', '.jpg', '.wav', '.gif', '.mp3')) + if not item.lower().endswith(('.jpeg', '.png', '.jpg', '.wav', + '.gif', '.mp3')) ] use_llm = True if len(user_agent.function_list) else False diff --git a/apps/agentfabric/appBot.py b/apps/agentfabric/appBot.py index 2b3d085b..230a6b94 100644 --- a/apps/agentfabric/appBot.py +++ b/apps/agentfabric/appBot.py @@ -153,12 +153,16 @@ def send_message(chatbot, input, _state, _user_token): # skip filtered_files = [ item for item in append_files - if not item.lower().endswith(('.jpeg', '.png', '.jpg', '.wav', '.gif', '.mp3')) + if not item.lower().endswith(('.jpeg', '.png', '.jpg', '.wav', + '.gif', '.mp3')) ] use_llm = True if len(user_agent.function_list) else False ref_doc = user_memory.run( - query=input.text, url=filtered_files, checked=True, use_llm=use_llm) + query=input.text, + url=filtered_files, + checked=True, + use_llm=use_llm) response = '' try: diff --git a/apps/agentfabric/server.py b/apps/agentfabric/server.py index b78631bb..c416bc3d 100644 --- a/apps/agentfabric/server.py +++ b/apps/agentfabric/server.py @@ -427,7 +427,8 @@ def generate(): # skip filtered_files = [ item for item in file_paths - if not item.lower().endswith(('.jpeg', '.png', '.jpg', '.wav', '.gif', '.mp3')) + if not item.lower().endswith(('.jpeg', '.png', '.jpg', '.wav', + '.gif', '.mp3')) ] use_llm = True if len(user_agent.function_list) else False