From c3f5903bd09bf535b8de316177857a1ddd65f45d Mon Sep 17 00:00:00 2001 From: karthikeyan-ks Date: Wed, 8 Jan 2025 22:15:12 +0530 Subject: [PATCH] backend it integrated with audio separation module --- backend/api/tasks.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/backend/api/tasks.py b/backend/api/tasks.py index 4973e5e..71afd05 100644 --- a/backend/api/tasks.py +++ b/backend/api/tasks.py @@ -1,9 +1,11 @@ from __future__ import absolute_import, unicode_literals from celery import shared_task +from src.input.file_reader import read_audio #export PYTHONPATH="/home/karthikeyan/code/MainProject/freq-split-enhance:$PYTHONPATH" for exporting the module + import time @shared_task def process_uploaded_file(file_path): # Simulate long-running task - time.sleep(300) # Replace with actual file processing logic + read_audio(file_path=file_path) return 'File processed'