Use comboboxes and nested classes

This commit is contained in:
mesonium
2024-06-15 17:42:06 +02:00
committed by hueso
parent 2ac06ad8a5
commit 98b8448948
3 changed files with 84 additions and 119 deletions

View File

@@ -40,7 +40,7 @@ class WhisperModel(Model):
def transcribe(self, audio_file: Path) -> str:
model = whisper.load_model(self._config['model_size'])
result = model.transcribe(audio_file)
return result["text"]
return result['text']
def on_setting(self, setting: Setting):
pass