backend it integrated with audio separation module
This commit is contained in:
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user