Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
suluyana committed Nov 25, 2024
1 parent a221e9e commit 72a8b12
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
3 changes: 2 additions & 1 deletion apps/agentfabric/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 6 additions & 2 deletions apps/agentfabric/appBot.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
3 changes: 2 additions & 1 deletion apps/agentfabric/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 72a8b12

Please sign in to comment.