Introduce dataclasses for configuring model settings

This commit is contained in:
mesonium
2024-06-18 15:15:52 +02:00
committed by hueso
parent f5db7f9809
commit 36c96b4a16
6 changed files with 68 additions and 20 deletions

View File

@@ -18,11 +18,13 @@ from pathlib import Path
from gajim.gtk.const import Setting
from ..helper import Results
class Model(ABC):
@abstractmethod
def transcribe(self, audio_file: Path) -> str:
def transcribe(self, result: Results, audio_file: Path) -> str:
return ''
@abstractmethod