from celery import Celery | |
import os | |
import time | |
from App import celery_config | |
from App.Transcription.Utils.audio_transcription import transcribe_file | |
celery = Celery() | |
celery.config_from_object(celery_config) | |
def transcription_task(self, file_path, model_size="tiny"): | |
return transcribe_file(state=self, file_path=file_path, model_size=model_size) | |