File size: 399 Bytes
252d749
 
 
 
 
 
 
 
 
 
 
78f1df3
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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)


@celery.task(name="create_task", bind=True)
def transcription_task(self, file_path, model_size="tiny"):
    return transcribe_file(state=self, file_path=file_path, model_size=model_size)