tranny / App /Worker.py
Mbonea's picture
added choices and stuff
78f1df3
raw
history blame
399 Bytes
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)