From a485d32a66e86e9eb6c269d723b4d39c451d341f Mon Sep 17 00:00:00 2001 From: Mohammad Amin Date: Mon, 2 Dec 2024 16:05:49 +0330 Subject: [PATCH] fix: black linter issues! --- worker/tasks.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/worker/tasks.py b/worker/tasks.py index 43aee05..adcbcea 100644 --- a/worker/tasks.py +++ b/worker/tasks.py @@ -9,6 +9,7 @@ from utils.traceloop import init_tracing from worker.celery import app + @app.task def ask_question_auto_search( community_id: str, @@ -18,7 +19,9 @@ def ask_question_auto_search( response, references = query_data_sources( community_id=community_id, query=query ) - answer_sources = PrepareAnswerSources(threshold=0.7).prepare_answer_sources(nodes=references) + answer_sources = PrepareAnswerSources(threshold=0.7).prepare_answer_sources( + nodes=references + ) except Exception: response = "Sorry, We cannot process your question at the moment." answer_sources = ""